DbgPrint calls DbgPrintEx
(which runs the code previously belonging to DbgPrint).
Modified: trunk/reactos/lib/ntdll/dbg/print.c
Modified: trunk/reactos/lib/ntdll/def/ntdll.def
_____
Modified: trunk/reactos/lib/ntdll/dbg/print.c
--- trunk/reactos/lib/ntdll/dbg/print.c 2005-02-26 20:17:44 UTC (rev
13758)
+++ trunk/reactos/lib/ntdll/dbg/print.c 2005-02-26 23:18:27 UTC (rev
13759)
@@ -27,10 +27,15 @@
"ret\n\t");
/*
- * @implemented
+ * @unimplemented
*/
ULONG
-DbgPrint(PCH Format, ...)
+DbgPrintEx(
+ IN ULONG ComponentId,
+ IN ULONG Level,
+ IN PCH Format,
+ ...
+ )
{
ANSI_STRING DebugString;
CHAR Buffer[4096];
@@ -53,6 +58,29 @@
/*
* @implemented
*/
+ULONG
+DbgPrint(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);
+
+
+ return DbgPrintEx (0, 0, DebugString.Buffer);
+}
+
+
+/*
+ * @implemented
+ */
VOID
STDCALL
DbgPrompt (
_____
Modified: trunk/reactos/lib/ntdll/def/ntdll.def
--- trunk/reactos/lib/ntdll/def/ntdll.def 2005-02-26 20:17:44 UTC
(rev 13758)
+++ trunk/reactos/lib/ntdll/def/ntdll.def 2005-02-26 23:18:27 UTC
(rev 13759)
@@ -23,6 +23,7 @@
CsrSetPriorityClass@8
DbgBreakPoint@0
DbgPrint
+DbgPrintEx
DbgPrompt@12
DbgSsHandleKmApiMsg@8
DbgSsInitialize@16