VirtualBox

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

最後變更 在這個檔案從13633是 1207,由 vboxsync 提交於 18 年 前

Cleaned up EOL style and uppercase names

  • 屬性 svn:eol-style 設為 native
檔案大小: 1.5 KB
 
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
注意: 瀏覽 TracBrowser 來幫助您使用儲存庫瀏覽器

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