OSDN Git Service

* include/sys/cygwin.h (strace_printf_wrap): Force printing when
authorcgf <cgf>
Thu, 24 Aug 2000 17:23:35 +0000 (17:23 +0000)
committercgf <cgf>
Thu, 24 Aug 2000 17:23:35 +0000 (17:23 +0000)
_STRACE_SYSTEM.
(strace_printf_wrap1): Ditto.

winsup/cygwin/ChangeLog
winsup/cygwin/include/sys/strace.h

index 685ff42..80578d3 100644 (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>
 
        * debug.h: Allow some debug defines for use in header files.
index 8b621df..82cc75d 100644 (file)
@@ -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; \
     }))