svn path=/trunk/; revision=48479
{
PLIST_ENTRY CurrentEntry;
PKD_DISPATCH_TABLE CurrentTable;
{
PLIST_ENTRY CurrentEntry;
PKD_DISPATCH_TABLE CurrentTable;
if (!KdpDebugMode.Value) return 0;
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;
while (CurrentEntry != &KdProviders)
/* Call the registered handlers */
CurrentEntry = KdProviders.Flink;
while (CurrentEntry != &KdProviders)
CurrentTable = CONTAINING_RECORD(CurrentEntry,
KD_DISPATCH_TABLE,
KdProvidersList);
CurrentTable = CONTAINING_RECORD(CurrentEntry,
KD_DISPATCH_TABLE,
KdProvidersList);
+
+ /* Send the process name */
+ CurrentTable->KdpPrintRoutine(Buffer, sizeof(Buffer));
/* Call it */
CurrentTable->KdpPrintRoutine(String, Length);
/* Call it */
CurrentTable->KdpPrintRoutine(String, Length);
/* Call the Wrapper Routine */
if (WrapperTable.KdpPrintRoutine)
/* Call the Wrapper Routine */
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 Length;
/* Return the Length */
return Length;