PC Review Forums Newsgroups Windows XP Windows XP Drivers Help on WPP program

Reply

Help on WPP program

 
Thread Tools Rate Thread
Old 19-01-2004, 08:21 PM   #1
zhong
Guest
 
Posts: n/a
Default Help on WPP program


Hi,

This is the first time I use WPP in my driver.

Here is the code in my sources file:

....
RUN_WPP= $(SOURCES) \
-km -dll \
-funcrvTrace(flag,arg,...) \
-funcrvTraceNoInfo((arg,...))

Here is the definition for DrvTrace and DrvTraceNoInfo:

#if !defined(DRV_TRACING)
#define DrvTrace(flag, arg)
_Debug_Print_Macro(flag, arg)
#define DrvTraceNoInfo(arg)
_Debug_Print_Macro_No_Info(arg)

#define _Debug_Print_Macro(flag, arg)
\
do
\
{
\
DbgPrint(DRIVERNAME ": 0x%x ",flag); \
DbgPrint arg;
\
}
\
while (0)

#define _Debug_Print_Macro_No_Info(arg)
\
do
\
{
\
DbgPrint arg;
\
}
\
while (0)
#else
#define DrvTrace(flag, arg)
#define DrvTraceNoInfo(arg)
#endif

Whenever I compiled the code, I got the following error
messages:

WPP_flag_arg_ENABLED not defined
WPP_flag_arg_LOGGER not defined

How can I get rid of these messages?

Thanks,

zhong
  Reply With Quote
Reply



Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off