VirtualBox

source: vbox/trunk/src/VBox/Additions/WINNT/Graphics/Display/Mirror/debug.c@ 3382

Last change on this file since 3382 was 1207, checked in by vboxsync, 18 years ago

Cleaned up EOL style and uppercase names

  • Property svn:eol-style set to native
File size: 1.5 KB
Line 
1/******************************Module*Header*******************************\
2*
3* *******************
4* * GDI SAMPLE CODE *
5* *******************
6*
7* Module Name: debug.c
8*
9* debug helpers routine
10*
11* Copyright (c) 1992-1998 Microsoft Corporation
12*
13\**************************************************************************/
14
15#include "driver.h"
16
17#ifdef VBOX
18#include <VBox/log.h>
19#endif
20
21ULONG DebugLevel = 0;
22
23/*****************************************************************************
24 *
25 * Routine Description:
26 *
27 * This function is variable-argument, level-sensitive debug print
28 * routine.
29 * If the specified debug level for the print statement is lower or equal
30 * to the current debug level, the message will be printed.
31 *
32 * Arguments:
33 *
34 * DebugPrintLevel - Specifies at which debugging level the string should
35 * be printed
36 *
37 * DebugMessage - Variable argument ascii c string
38 *
39 * Return Value:
40 *
41 * None.
42 *
43 ***************************************************************************/
44
45VOID
46DebugPrint(
47 ULONG DebugPrintLevel,
48 PCHAR DebugMessage,
49 ...
50 )
51
52{
53
54 va_list ap;
55
56 va_start(ap, DebugMessage);
57
58#ifdef VBOX
59 RTLogBackdoorPrintf("MIRROR: ");
60 RTLogBackdoorPrintfV(DebugMessage, ap);
61#else
62 if (DebugPrintLevel <= DebugLevel)
63 {
64 EngDebugPrint("", DebugMessage, ap);
65 }
66#endif /* VBOX */
67
68 va_end(ap);
69
70}
71
Note: See TracBrowser for help on using the repository browser.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette