* include/sys/cygwin.h (strace_printf_wrap): Force printing when

_STRACE_SYSTEM.
(strace_printf_wrap1): Ditto.
This commit is contained in:
Christopher Faylor 2000-08-24 17:23:35 +00:00
parent d1be315740
commit 123469a0e9
2 changed files with 8 additions and 2 deletions

View File

@ -1,3 +1,9 @@
Thu Aug 24 13:21:09 2000 Christopher Faylor <cgf@cygnus.com>
* include/sys/cygwin.h (strace_printf_wrap): Force printing when
_STRACE_SYSTEM.
(strace_printf_wrap1): Ditto.
Thu Aug 24 12:30:17 2000 Christopher Faylor <cgf@cygnus.com> Thu Aug 24 12:30:17 2000 Christopher Faylor <cgf@cygnus.com>
* debug.h: Allow some debug defines for use in header files. * debug.h: Allow some debug defines for use in header files.

View File

@ -95,13 +95,13 @@ extern "C" void small_printf (const char *, ...);
#else #else
#define strace_printf_wrap(what, fmt, args...) \ #define strace_printf_wrap(what, fmt, args...) \
((void) ({\ ((void) ({\
if (strace.active) \ if ((_STRACE_ ## what & _STRACE_SYSTEM) || strace.active) \
strace.prntf(_STRACE_ ## what, __PRETTY_FUNCTION__, fmt, ## args); \ strace.prntf(_STRACE_ ## what, __PRETTY_FUNCTION__, fmt, ## args); \
0; \ 0; \
})) }))
#define strace_printf_wrap1(what, fmt, args...) \ #define strace_printf_wrap1(what, fmt, args...) \
((void) ({\ ((void) ({\
if (strace.active) \ if ((_STRACE_ ## what & _STRACE_SYSTEM) || strace.active) \
strace.prntf((_STRACE_ ## what) | _STRACE_NOTALL, __PRETTY_FUNCTION__, fmt, ## args); \ strace.prntf((_STRACE_ ## what) | _STRACE_NOTALL, __PRETTY_FUNCTION__, fmt, ## args); \
0; \ 0; \
})) }))