mirror of
https://github.com/reactos/reactos.git
synced 2025-02-23 17:05:46 +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;
|
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;
|
||||||
|
|
Loading…
Reference in a new issue