mirror of
https://github.com/reactos/reactos.git
synced 2025-02-24 17:34:57 +00:00
[SVCHOST]
Fix debug prints. svn path=/trunk/; revision=59850
This commit is contained in:
parent
b96d93332b
commit
13fa3680e5
1 changed files with 9 additions and 9 deletions
|
@ -22,22 +22,22 @@
|
||||||
// This prints out a SVCHOST-specific debug print, with the PID/TID
|
// This prints out a SVCHOST-specific debug print, with the PID/TID
|
||||||
//
|
//
|
||||||
#if _EX_
|
#if _EX_
|
||||||
#define SvchostDbgPrint(l, x, ...) \
|
#define SvchostDbgPrint(lev, fmt, ...) \
|
||||||
DbgPrintEx(DPFLTR_SVCHOST_ID, \
|
DbgPrintEx(DPFLTR_SVCHOST_ID, \
|
||||||
DPFLTR_MASK | l, \
|
DPFLTR_MASK | lev, \
|
||||||
"[SVCHOST] %lx.%lx: " # x, \
|
"[SVCHOST] %lx.%lx: " fmt, \
|
||||||
GetCurrentProcessId(), \
|
GetCurrentProcessId(), \
|
||||||
GetCurrentThreadId(), \
|
GetCurrentThreadId(), \
|
||||||
__VA_ARGS__);
|
__VA_ARGS__);
|
||||||
#else
|
#else
|
||||||
#define SvchostDbgPrint(l, x, ...) \
|
#define SvchostDbgPrint(lev, fmt, ...) \
|
||||||
DbgPrint("[SVCHOST] %lx.%lx: " # x, \
|
DbgPrint("[SVCHOST] %lx.%lx: " fmt, \
|
||||||
GetCurrentProcessId(), \
|
GetCurrentProcessId(), \
|
||||||
GetCurrentThreadId(), \
|
GetCurrentThreadId(), \
|
||||||
__VA_ARGS__);
|
__VA_ARGS__);
|
||||||
#endif
|
#endif
|
||||||
#define DBG_ERR(x, ...) SvchostDbgPrint(1, x, __VA_ARGS__)
|
#define DBG_ERR(fmt, ...) SvchostDbgPrint(1, fmt, __VA_ARGS__)
|
||||||
#define DBG_TRACE(x, ...) SvchostDbgPrint(4, x, __VA_ARGS__)
|
#define DBG_TRACE(fmt, ...) SvchostDbgPrint(4, fmt, __VA_ARGS__)
|
||||||
|
|
||||||
//
|
//
|
||||||
// This is the callback that a hosted service can register for stop notification
|
// This is the callback that a hosted service can register for stop notification
|
||||||
|
|
Loading…
Reference in a new issue