mirror of
https://github.com/reactos/reactos.git
synced 2025-02-22 08:25:03 +00:00
[VIDEOPRT] Add global variable for debugging video drivers (#3080)
Reference: https://docs.microsoft.com/en-us/previous-versions/ff570170(v=vs.85)
This commit is contained in:
parent
0f8de896aa
commit
0dfc7f06b7
1 changed files with 7 additions and 0 deletions
|
@ -31,6 +31,8 @@
|
||||||
|
|
||||||
/* GLOBAL VARIABLES ***********************************************************/
|
/* GLOBAL VARIABLES ***********************************************************/
|
||||||
|
|
||||||
|
ULONG VideoDebugLevel = 0;
|
||||||
|
|
||||||
BOOLEAN VpBaseVideo = FALSE;
|
BOOLEAN VpBaseVideo = FALSE;
|
||||||
BOOLEAN VpNoVesa = FALSE;
|
BOOLEAN VpNoVesa = FALSE;
|
||||||
|
|
||||||
|
@ -294,6 +296,8 @@ IntVideoPortFindAdapter(
|
||||||
SystemBasicInfo.PageSize;
|
SystemBasicInfo.PageSize;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// FIXME: Check the adapter key and update VideoDebugLevel variable.
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Call miniport HwVidFindAdapter entry point to detect if
|
* Call miniport HwVidFindAdapter entry point to detect if
|
||||||
* particular device is present. There are two possible code
|
* particular device is present. There are two possible code
|
||||||
|
@ -794,6 +798,9 @@ VideoPortDebugPrint(
|
||||||
{
|
{
|
||||||
va_list ap;
|
va_list ap;
|
||||||
|
|
||||||
|
if (VideoDebugLevel >= DebugPrintLevel)
|
||||||
|
DebugPrintLevel = Error;
|
||||||
|
|
||||||
va_start(ap, DebugMessage);
|
va_start(ap, DebugMessage);
|
||||||
vDbgPrintEx(DPFLTR_IHVVIDEO_ID, DebugPrintLevel, DebugMessage, ap);
|
vDbgPrintEx(DPFLTR_IHVVIDEO_ID, DebugPrintLevel, DebugMessage, ap);
|
||||||
va_end(ap);
|
va_end(ap);
|
||||||
|
|
Loading…
Reference in a new issue