Navigation Menu

Skip to content

Commit

Permalink
[driver] Use DbgPrintEx() for XP and above
Browse files Browse the repository at this point in the history
On Vista and above, DbgPrint() will no longer unconditonally print the
debug message.  Reimplement DbgPrint() as a wrapper around
DbgPrintEx() where DbgPrintEx() is available, to avoid this problem.
  • Loading branch information
Michael Brown committed Oct 22, 2009
1 parent 798a5f5 commit a005ee7
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions driver/sanbootconf.c
Expand Up @@ -30,6 +30,18 @@
#include <iscsicfg.h>
#include "ibft.h"

/** DbgPrintEx() wrapper
*
* For Vista and above, using DbgPrint() will cause debug messages to
* be hidden unless explicitly enabled. We don't want this; it's hard
* enough already getting diagnostic reports from users.
*/
#if NTDDI_VERSION >= NTDDI_WINXP
#undef DbgPrint
#define DbgPrint(...) DbgPrintEx ( DPFLTR_IHVDRIVER_ID, \
DPFLTR_ERROR_LEVEL, __VA_ARGS__ )
#endif /* NTDDI_WINXP */

/** Tag to use for memory allocation */
#define SANBOOTCONF_POOL_TAG 'fcbs'

Expand Down

0 comments on commit a005ee7

Please sign in to comment.