Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristopher Faylor <me@cgf.cx>2000-08-02 19:24:45 +0400
committerChristopher Faylor <me@cgf.cx>2000-08-02 19:24:45 +0400
commitad8dea13f05b51769c9bef7e414f654588971c10 (patch)
treecd88f95ea1df92b12a21f7eedef9732ebe06e745 /winsup/cygwin
parenta5a965ff62d95b01858f24d8e89c1dc39bbfb298 (diff)
* include/sys/strace.h: Fix strace definition.
Diffstat (limited to 'winsup/cygwin')
-rw-r--r--winsup/cygwin/ChangeLog4
-rw-r--r--winsup/cygwin/include/sys/strace.h4
2 files changed, 6 insertions, 2 deletions
diff --git a/winsup/cygwin/ChangeLog b/winsup/cygwin/ChangeLog
index af7fe7214..516aeb081 100644
--- a/winsup/cygwin/ChangeLog
+++ b/winsup/cygwin/ChangeLog
@@ -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
diff --git a/winsup/cygwin/include/sys/strace.h b/winsup/cygwin/include/sys/strace.h
index 43aa21c82..6a4408a01 100644
--- a/winsup/cygwin/include/sys/strace.h
+++ b/winsup/cygwin/include/sys/strace.h
@@ -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__)