mirror of https://github.com/lianthony/NT4.0
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
50 lines
982 B
50 lines
982 B
/******************************Module*Header*******************************\
|
|
* Module Name: debugint.c
|
|
*
|
|
*
|
|
* Created: 13-Sep-1993 08:55:20
|
|
* Author: Eric Kutter [erick]
|
|
*
|
|
* Copyright (c) 1993 Microsoft Corporation
|
|
*
|
|
\**************************************************************************/
|
|
|
|
#include "precomp.h"
|
|
#pragma hdrstop
|
|
|
|
/******************************Public*Routine******************************\
|
|
* DbgPrint()
|
|
*
|
|
* defines a DbgPrint that will work with WINDBG. The base DbgPrint()
|
|
* always goes to the kernel debugger.
|
|
*
|
|
* History:
|
|
* 15-Sep-1993 -by- Eric Kutter [erick]
|
|
* stole from vga driver.
|
|
\**************************************************************************/
|
|
|
|
ULONG
|
|
DbgPrint(
|
|
PCH DebugMessage,
|
|
...
|
|
)
|
|
{
|
|
va_list ap;
|
|
char buffer[256];
|
|
|
|
va_start(ap, DebugMessage);
|
|
|
|
vsprintf(buffer, DebugMessage, ap);
|
|
|
|
OutputDebugStringA(buffer);
|
|
|
|
va_end(ap);
|
|
|
|
return(0);
|
|
}
|
|
|
|
VOID NTAPI
|
|
DbgBreakPoint(VOID)
|
|
{
|
|
DebugBreak();
|
|
}
|