[NTOSKRNL]

Deferred success...

svn path=/trunk/; revision=48480
This commit is contained in:
Timo Kreuzer 2010-08-07 21:22:00 +00:00
parent c444de303a
commit 0156668176

View file

@ -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;