blob: 543354e7289a213b6878dffe5e90b00fb9550d27 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
|
#if HALDBG
/*++
Copyright (c) 1993-1994 Digital Equipment Corporation
Module Name:
haldebug.c
Abstract:
This module contains debugging code for the HAL.
Author:
Steve Jenness 09-Nov-1993
Joe Notarangelo 28-Jan-1994
Environment:
Kernel mode
Revision History:
--*/
#include "halp.h"
#include <stdarg.h>
#include <stdio.h>
ULONG HalDebugMask = 0;
UCHAR HalDebugBuffer[512];
VOID
HalDebugPrint(
ULONG DebugPrintMask,
PCCHAR DebugMessage,
...
)
{
va_list ap;
va_start(ap, DebugMessage);
if( (DebugPrintMask & HalDebugMask) != 0 )
{
vsprintf(HalDebugBuffer, DebugMessage, ap);
DbgPrint(HalDebugBuffer);
}
va_end(ap);
}
#endif // HALDBG
|