diff options
Diffstat (limited to 'winsup/cygwin/include/sys')
-rw-r--r-- | winsup/cygwin/include/sys/strace.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/winsup/cygwin/include/sys/strace.h b/winsup/cygwin/include/sys/strace.h index 6a4408a01..8b621dfb4 100644 --- a/winsup/cygwin/include/sys/strace.h +++ b/winsup/cygwin/include/sys/strace.h @@ -24,14 +24,14 @@ class strace { int microseconds (); - int vsprntf (char *buf, const char *infmt, va_list ap); + int vsprntf (char *buf, const char *func, const char *infmt, va_list ap); void write (unsigned category, const char *buf, int count); public: int version; int active; int lmicrosec; strace() : version(1) {} - void prntf (unsigned, const char *, ...); + void prntf (unsigned, const char *func, const char *, ...); void wm (int message, int word, int lon); }; @@ -74,7 +74,7 @@ extern "C" void small_printf (const char *, ...); #define define_strace0(c,...) \ do { \ if ((c & _STRACE_SYSTEM) || strace.active) \ - strace.prntf (c, "%F: " __VA_ARGS__); \ + strace.prntf (c, __PRETTY_FUNCTION__, __VA_ARGS__); \ } \ while (0) @@ -96,13 +96,13 @@ extern "C" void small_printf (const char *, ...); #define strace_printf_wrap(what, fmt, args...) \ ((void) ({\ if (strace.active) \ - strace.prntf(_STRACE_ ## what, "%F: " fmt, __PRETTY_FUNCTION__ , ## args); \ + strace.prntf(_STRACE_ ## what, __PRETTY_FUNCTION__, fmt, ## args); \ 0; \ })) #define strace_printf_wrap1(what, fmt, args...) \ ((void) ({\ if (strace.active) \ - strace.prntf((_STRACE_ ## what) | _STRACE_NOTALL, "%F: " fmt, __PRETTY_FUNCTION__ , ## args); \ + strace.prntf((_STRACE_ ## what) | _STRACE_NOTALL, __PRETTY_FUNCTION__, fmt, ## args); \ 0; \ })) |