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.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/winsup/cygwin/include/sys/strace.h b/winsup/cygwin/include/sys/strace.h
index 376cf7ac6..2eeea992e 100644
--- a/winsup/cygwin/include/sys/strace.h
+++ b/winsup/cygwin/include/sys/strace.h
@@ -1,7 +1,7 @@
/* sys/strace.h
Copyright 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
- 2005, 2008, 2010 Red Hat, Inc.
+ 2005, 2008, 2010, 2011 Red Hat, Inc.
This file is part of Cygwin.
@@ -116,6 +116,12 @@ void strace_printf (unsigned, const char *func, const char *, ...);
strace.prntf((_STRACE_ ## what) | _STRACE_NOTALL, __PRETTY_FUNCTION__, fmt, ## args); \
0; \
}))
+#define strace_vprintf(what, fmt, arg) \
+ ((void) ({\
+ if ((_STRACE_ ## what & _STRACE_SYSTEM) || strace.active ()) \
+ strace.vprntf((_STRACE_ ## what) | _STRACE_NOTALL, __PRETTY_FUNCTION__, fmt, arg); \
+ 0; \
+ }))
#endif /*NOSTRACE*/
#define debug_printf(fmt, args...) strace_printf_wrap(DEBUG, fmt , ## args)