[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; PLIST_ENTRY CurrentEntry;
PKD_DISPATCH_TABLE CurrentTable; PKD_DISPATCH_TABLE CurrentTable;
CHAR Buffer[32];
if (!KdpDebugMode.Value) return 0;
/* Build process name and PID/TID buffer */ if (!KdpDebugMode.Value) return 0;
sprintf(Buffer, "[%s (%p:%p)]: ",
PsGetCurrentProcess()->ImageFileName,
PsGetCurrentProcessId(), PsGetCurrentThreadId());
/* Call the registered handlers */ /* Call the registered handlers */
CurrentEntry = KdProviders.Flink; CurrentEntry = KdProviders.Flink;
@ -366,9 +361,6 @@ KdpPrintString(LPSTR String,
CurrentTable = CONTAINING_RECORD(CurrentEntry, CurrentTable = CONTAINING_RECORD(CurrentEntry,
KD_DISPATCH_TABLE, KD_DISPATCH_TABLE,
KdProvidersList); KdProvidersList);
/* Send the process name */
CurrentTable->KdpPrintRoutine(Buffer, sizeof(Buffer));
/* Call it */ /* Call it */
CurrentTable->KdpPrintRoutine(String, Length); CurrentTable->KdpPrintRoutine(String, Length);
@ -379,13 +371,7 @@ KdpPrintString(LPSTR String,
/* Call the Wrapper Routine */ /* Call the Wrapper Routine */
if (WrapperTable.KdpPrintRoutine) if (WrapperTable.KdpPrintRoutine)
{
/* Send the process name */
WrapperTable.KdpPrintRoutine(Buffer, sizeof(Buffer));
/* Send the message */
WrapperTable.KdpPrintRoutine(String, Length); WrapperTable.KdpPrintRoutine(String, Length);
}
/* Return the Length */ /* Return the Length */
return Length; return Length;