Author: tkreuzer Date: Sat Aug 7 21:22:00 2010 New Revision: 48480
URL: http://svn.reactos.org/svn/reactos?rev=48480&view=rev Log: [NTOSKRNL] Deferred success...
Modified: trunk/reactos/ntoskrnl/kd/kdio.c
Modified: trunk/reactos/ntoskrnl/kd/kdio.c URL: http://svn.reactos.org/svn/reactos/trunk/reactos/ntoskrnl/kd/kdio.c?rev=4848... ============================================================================== --- trunk/reactos/ntoskrnl/kd/kdio.c [iso-8859-1] (original) +++ trunk/reactos/ntoskrnl/kd/kdio.c [iso-8859-1] Sat Aug 7 21:22:00 2010 @@ -350,13 +350,8 @@ { 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());
/* Call the registered handlers */ CurrentEntry = KdProviders.Flink; @@ -366,9 +361,6 @@ 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 @@
/* 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;