Windows2003-3790/drivers/filters/beep/dbg.c
2020-09-30 16:53:55 +02:00

53 lines
714 B
C
Raw Permalink Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

#include "stdarg.h"
#include "stdio.h"
#include "ntddk.h"
#if DBG
//
// Declare the global debug flag for this driver.
//
ULONG BeepDebug = 1;
VOID
BeepDebugPrint(
ULONG DebugPrintLevel,
PCCHAR DebugMessage,
...
)
/*++
Routine Description:
Debug print routine.
Arguments:
Debug print level between 0 and 3, with 3 being the most verbose.
Return Value:
None.
--*/
{
va_list ap;
va_start(ap, DebugMessage);
if (DebugPrintLevel <= BeepDebug) {
char buffer[256];
DbgPrint("BEEP: ");
(VOID) vsprintf(buffer, DebugMessage, ap);
DbgPrint(buffer);
}
va_end(ap);
}
#endif