Alexandre Julliard : ntoskrnl: Use the magic format string prefix for relay traces.
Alexandre Julliard
julliard at winehq.org
Mon Nov 27 15:05:39 CST 2017
Module: wine
Branch: master
Commit: cd1f412d3a62d5c529ddb46865de702a948cdaea
URL: http://source.winehq.org/git/wine.git/?a=commit;h=cd1f412d3a62d5c529ddb46865de702a948cdaea
Author: Alexandre Julliard <julliard at winehq.org>
Date: Sat Nov 25 11:48:11 2017 +0100
ntoskrnl: Use the magic format string prefix for relay traces.
Signed-off-by: Alexandre Julliard <julliard at winehq.org>
---
dlls/ntoskrnl.exe/ntoskrnl.c | 9 +++------
1 file changed, 3 insertions(+), 6 deletions(-)
diff --git a/dlls/ntoskrnl.exe/ntoskrnl.c b/dlls/ntoskrnl.exe/ntoskrnl.c
index 6347eb0..4342902 100644
--- a/dlls/ntoskrnl.exe/ntoskrnl.c
+++ b/dlls/ntoskrnl.exe/ntoskrnl.c
@@ -1295,15 +1295,12 @@ NTSTATUS WINAPI IoCallDriver( DEVICE_OBJECT *device, IRP *irp )
irpsp = --irp->Tail.Overlay.s.u2.CurrentStackLocation;
dispatch = device->DriverObject->MajorFunction[irpsp->MajorFunction];
- if (TRACE_ON(relay))
- DPRINTF( "%04x:Call driver dispatch %p (device=%p,irp=%p)\n",
- GetCurrentThreadId(), dispatch, device, irp );
+ TRACE_(relay)( "\1Call driver dispatch %p (device=%p,irp=%p)\n", dispatch, device, irp );
status = dispatch( device, irp );
- if (TRACE_ON(relay))
- DPRINTF( "%04x:Ret driver dispatch %p (device=%p,irp=%p) retval=%08x\n",
- GetCurrentThreadId(), dispatch, device, irp, status );
+ TRACE_(relay)( "\1Ret driver dispatch %p (device=%p,irp=%p) retval=%08x\n",
+ dispatch, device, irp, status );
return status;
}
More information about the wine-cvs
mailing list