[prev in list] [next in list] [prev in thread] [next in thread]
List: ros-diffs
Subject: [ros-diffs] [ea] 13759: DbgPrint calls DbgPrintEx
From: <ea () svn ! reactos ! com>
Date: 2005-02-26 23:18:27
Message-ID: 000001c51c59$7a20bc80$6601a8c0 () penelope
[Download RAW message or body]
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
[Attachment #3 (text/html)]
<html>
<head>
<style>
<!--
body { background-color:#ffffff }
.file { border:1px solid #eeeeee; margin-top:1em; margin-bottom:1em }
.pathname { font-family:monospace; float:right }
.fileheader { margin-bottom:.5em }
.diff { margin:0 }
.tasklist { padding:4px; border:1px dashed #000000; margin-top:1em }
.tasklist ul { margin-top:0; margin-bottom:0 }
tr.alt { background-color:#eeeeee }
#added { background-color:#ddffdd }
#addedchars { background-color:#99ff99; font-weight:bolder }
tr.alt #added { background-color:#ccf7cc }
#removed { background-color:#ffdddd }
#removedchars { background-color:#ff9999; font-weight:bolder }
tr.alt #removed { background-color:#f7cccc }
#info { color:#888888 }
#context { background-color:#eeeeee }
td {padding-left:.3em; padding-right:.3em }
tr.head { border-bottom-width:1px; border-bottom-style:solid }
tr.head td { padding:0; padding-top:.2em }
.task { background-color:#ffff00 }
.comment { padding:4px; border:1px dashed #000000; background-color:#ffffdd }
.error { color:red }
hr { border-width:0px; height:2px; background:black }
-->
</style>
</head>
<body>
<pre class="comment">DbgPrint calls DbgPrintEx
(which runs the code previously belonging to DbgPrint).</pre><pre class="diff" \
id="context">Modified: trunk/reactos/lib/ntdll/dbg/print.c
Modified: trunk/reactos/lib/ntdll/def/ntdll.def
</pre><hr /><div class="file">
<div class="fileheader"><big><b>Modified: \
trunk/reactos/lib/ntdll/dbg/print.c</b></big></div> <pre class="diff"><small \
id="info">--- 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 @@
</small></pre><pre class="diff" id="context"> \
"ret\n\t");
/*
</pre><pre class="diff" id="removed">- * @implemented
</pre><pre class="diff" id="added">+ * @<span id="addedchars">un</span>implemented
</pre><pre class="diff" id="context"> */
ULONG
</pre><pre class="diff" id="removed">-DbgPrint<span id="removedchars">(PCH Format, \
...)</span> </pre><pre class="diff" id="added">+DbgPrint<span \
id="addedchars">Ex(</span> + IN ULONG ComponentId,
+ IN ULONG Level,
+ IN PCH Format,
+ ...
+ )
</pre><pre class="diff" id="context"> {
ANSI_STRING DebugString;
CHAR Buffer[4096];
@@ -53,6 +58,29 @@
</pre><pre class="diff" id="context"> /*
* @implemented
*/
</pre><pre class="diff" id="added">+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
+ */
</pre><pre class="diff" id="context"> VOID
STDCALL
DbgPrompt (
</pre></div>
<hr /><div class="file">
<div class="fileheader"><big><b>Modified: \
trunk/reactos/lib/ntdll/def/ntdll.def</b></big></div> <pre class="diff"><small \
id="info">--- 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 @@
</small></pre><pre class="diff" id="context"> CsrSetPriorityClass@8
DbgBreakPoint@0
DbgPrint
</pre><pre class="diff" id="added">+DbgPrintEx
</pre><pre class="diff" id="context"> DbgPrompt@12
DbgSsHandleKmApiMsg@8
DbgSsInitialize@16
</pre>
</div>
</body>
</html>
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic