[driver] Use DbgPrintEx() for XP and above

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.
This commit is contained in:
Michael Brown 2009-10-22 21:36:18 +01:00
parent 798a5f5be8
commit a005ee7f4c

View File

@ -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'