diff options
author | Christopher Faylor <me@cgf.cx> | 2000-08-02 23:26:01 +0400 |
---|---|---|
committer | Christopher Faylor <me@cgf.cx> | 2000-08-02 23:26:01 +0400 |
commit | 20d7f7583797512876904592d48f54d157d427af (patch) | |
tree | 07e18d4928df850cbdf27ecd9bc82037d17a9629 /winsup/cygwin/include/sys/strace.h | |
parent | 5a7b5870ff892b6e2d8293f0453959d717e0973b (diff) |
* strace.cc (strace::prntf): Make second argument the function name, rather
than use special format options.
(strace::vprntf): Ditto.
(getfunc): New function.
* include/sys/strace.h: Reflect above changes.
* smallprint.c (__small_vsprintf): Eliminate '%F' formatting.
* pinfo.cc (set_myself): Modify for new strace::prntf parameter.
* errno.cc (seterrno_from_win_error): Ditto.
* fhandler_tty.cc (fhandler_tty_common::__acquire_output_mutex): Ditto.
* fhandler_tty.cc (fhandler_tty_common::__release_output_mutex): Ditto.
Diffstat (limited to 'winsup/cygwin/include/sys/strace.h')
-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; \ })) |