summaryrefslogtreecommitdiffstats
path: root/winsup/cygwin/include/sys/strace.h
diff options
context:
space:
mode:
Diffstat (limited to 'winsup/cygwin/include/sys/strace.h')
-rw-r--r--winsup/cygwin/include/sys/strace.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/winsup/cygwin/include/sys/strace.h b/winsup/cygwin/include/sys/strace.h
index 8b621dfb4..82cc75d5c 100644
--- a/winsup/cygwin/include/sys/strace.h
+++ b/winsup/cygwin/include/sys/strace.h
@@ -95,13 +95,13 @@ extern "C" void small_printf (const char *, ...);
#else
#define strace_printf_wrap(what, fmt, args...) \
((void) ({\
- if (strace.active) \
+ if ((_STRACE_ ## what & _STRACE_SYSTEM) || strace.active) \
strace.prntf(_STRACE_ ## what, __PRETTY_FUNCTION__, fmt, ## args); \
0; \
}))
#define strace_printf_wrap1(what, fmt, args...) \
((void) ({\
- if (strace.active) \
+ if ((_STRACE_ ## what & _STRACE_SYSTEM) || strace.active) \
strace.prntf((_STRACE_ ## what) | _STRACE_NOTALL, __PRETTY_FUNCTION__, fmt, ## args); \
0; \
}))