* include/sys/strace.h: Fix strace definition.

This commit is contained in:
Christopher Faylor 2000-08-02 15:24:45 +00:00
parent a5a965ff62
commit ad8dea13f0
2 changed files with 6 additions and 2 deletions

View File

@ -1,3 +1,7 @@
Wed Aug 2 11:22:53 2000 Christopher Faylor <cgf@cygnus.com>
* include/sys/strace.h: Fix strace definition.
Tue Aug 1 23:37:08 2000 Christopher Faylor <cgf@cygnus.com>
* strace.h: Add kludgy workarounds to avoid using deprecated methods

View File

@ -73,13 +73,13 @@ extern "C" void small_printf (const char *, ...);
#define define_strace0(c,...) \
do { \
if (c & _STRACE_SYSTEM || strace.active) \
if ((c & _STRACE_SYSTEM) || strace.active) \
strace.prntf (c, "%F: " __VA_ARGS__); \
} \
while (0)
#define define_strace(c, ...) define_strace0 (_STRACE_ ## c, __VA_ARGS__)
#define define_strace1(c, ...) define_strace0 (_STRACE_ ## c | _STRACE_NOTALL, __VA_ARGS__)
#define define_strace1(c, ...) define_strace0 ((_STRACE_ ## c | _STRACE_NOTALL), __VA_ARGS__)
#define debug_printf(...) define_strace (DEBUG, __VA_ARGS__)
#define paranoid_printf(...) define_strace (PARANOID, __VA_ARGS__)