mirror of
https://github.com/ipxe/sanbootconf.git
synced 2025-05-09 01:21:13 +08:00
[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:
parent
798a5f5be8
commit
a005ee7f4c
@ -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'
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user