summaryrefslogtreecommitdiffstats
path: root/winsup/cygwin/fhandler_fifo.cc
diff options
context:
space:
mode:
Diffstat (limited to 'winsup/cygwin/fhandler_fifo.cc')
-rw-r--r--winsup/cygwin/fhandler_fifo.cc6
1 files changed, 5 insertions, 1 deletions
diff --git a/winsup/cygwin/fhandler_fifo.cc b/winsup/cygwin/fhandler_fifo.cc
index d2b236d5c..8a021bd62 100644
--- a/winsup/cygwin/fhandler_fifo.cc
+++ b/winsup/cygwin/fhandler_fifo.cc
@@ -68,7 +68,11 @@ fhandler_fifo::arm (HANDLE h)
bool res = SetEvent (h);
if (!res)
- debug_printf ("SetEvent for %s failed, %E", res);
+#ifdef DEBUGGING
+ debug_printf ("SetEvent for %s failed, %E", what);
+#else
+ debug_printf ("SetEvent failed, %E");
+#endif
return res;
}