mirror of
https://github.com/reactos/reactos.git
synced 2025-04-19 20:19:26 +00:00
DbgPrint calls DbgPrintEx
(which runs the code previously belonging to DbgPrint). svn path=/trunk/; revision=13759
This commit is contained in:
parent
ab419177d6
commit
d080afd5a6
2 changed files with 31 additions and 2 deletions
|
@ -26,6 +26,35 @@ __asm__ ("\n\t.global _DbgService\n\t"
|
|||
"int $0x2D\n\t"
|
||||
"ret\n\t");
|
||||
|
||||
/*
|
||||
* @unimplemented
|
||||
*/
|
||||
ULONG
|
||||
DbgPrintEx(
|
||||
IN ULONG ComponentId,
|
||||
IN ULONG Level,
|
||||
IN PCH Format,
|
||||
...
|
||||
)
|
||||
{
|
||||
ANSI_STRING DebugString;
|
||||
CHAR Buffer[4096];
|
||||
va_list ap;
|
||||
|
||||
/* init ansi string */
|
||||
DebugString.Buffer = Buffer;
|
||||
DebugString.MaximumLength = sizeof(Buffer);
|
||||
|
||||
va_start (ap, Format);
|
||||
DebugString.Length = _vsnprintf (Buffer, sizeof(Buffer), Format, ap);
|
||||
va_end (ap);
|
||||
|
||||
DbgService (1, &DebugString, NULL);
|
||||
|
||||
return (ULONG)DebugString.Length;
|
||||
}
|
||||
|
||||
|
||||
/*
|
||||
* @implemented
|
||||
*/
|
||||
|
@ -44,9 +73,8 @@ DbgPrint(PCH Format, ...)
|
|||
DebugString.Length = _vsnprintf (Buffer, sizeof(Buffer), Format, ap);
|
||||
va_end (ap);
|
||||
|
||||
DbgService (1, &DebugString, NULL);
|
||||
|
||||
return (ULONG)DebugString.Length;
|
||||
return DbgPrintEx (0, 0, DebugString.Buffer);
|
||||
}
|
||||
|
||||
|
||||
|
|
|
@ -23,6 +23,7 @@ CsrProbeForWrite@12
|
|||
CsrSetPriorityClass@8
|
||||
DbgBreakPoint@0
|
||||
DbgPrint
|
||||
DbgPrintEx
|
||||
DbgPrompt@12
|
||||
DbgSsHandleKmApiMsg@8
|
||||
DbgSsInitialize@16
|
||||
|
|
Loading…
Reference in a new issue