mirror of
https://github.com/reactos/reactos.git
synced 2025-02-23 08:55:19 +00:00
[NTOSKRNL]
Deferred success... svn path=/trunk/; revision=48480
This commit is contained in:
parent
c444de303a
commit
0156668176
1 changed files with 1 additions and 15 deletions
|
@ -350,13 +350,8 @@ KdpPrintString(LPSTR String,
|
|||
{
|
||||
PLIST_ENTRY CurrentEntry;
|
||||
PKD_DISPATCH_TABLE CurrentTable;
|
||||
CHAR Buffer[32];
|
||||
if (!KdpDebugMode.Value) return 0;
|
||||
|
||||
/* Build process name and PID/TID buffer */
|
||||
sprintf(Buffer, "[%s (%p:%p)]: ",
|
||||
PsGetCurrentProcess()->ImageFileName,
|
||||
PsGetCurrentProcessId(), PsGetCurrentThreadId());
|
||||
if (!KdpDebugMode.Value) return 0;
|
||||
|
||||
/* Call the registered handlers */
|
||||
CurrentEntry = KdProviders.Flink;
|
||||
|
@ -366,9 +361,6 @@ KdpPrintString(LPSTR String,
|
|||
CurrentTable = CONTAINING_RECORD(CurrentEntry,
|
||||
KD_DISPATCH_TABLE,
|
||||
KdProvidersList);
|
||||
|
||||
/* Send the process name */
|
||||
CurrentTable->KdpPrintRoutine(Buffer, sizeof(Buffer));
|
||||
|
||||
/* Call it */
|
||||
CurrentTable->KdpPrintRoutine(String, Length);
|
||||
|
@ -379,13 +371,7 @@ KdpPrintString(LPSTR String,
|
|||
|
||||
/* Call the Wrapper Routine */
|
||||
if (WrapperTable.KdpPrintRoutine)
|
||||
{
|
||||
/* Send the process name */
|
||||
WrapperTable.KdpPrintRoutine(Buffer, sizeof(Buffer));
|
||||
|
||||
/* Send the message */
|
||||
WrapperTable.KdpPrintRoutine(String, Length);
|
||||
}
|
||||
|
||||
/* Return the Length */
|
||||
return Length;
|
||||
|
|
Loading…
Reference in a new issue