]> git.michaelhowe.org Git - packages/o/openafs.git/commitdiff
DEVEL15-rx-dpf-clarify-20080924
authorSimon Wilkinson <sxw@inf.ed.ac.uk>
Thu, 25 Sep 2008 21:19:57 +0000 (21:19 +0000)
committerDerrick Brashear <shadow@dementia.org>
Thu, 25 Sep 2008 21:19:57 +0000 (21:19 +0000)
LICENSE IPL10

rework dpf macro slightly so there are no trailing ; issues

(cherry picked from commit 3a5e912230fd09c72c1a27d7f7d4e4ac78f9323b)

src/rx/rx_globals.h

index 45c6cec9778dd501ad019e65c90ea85c538c4f4f..c9dd2b034ef8d81c8a3e4ba4d2a8fb19bed76ca3 100644 (file)
@@ -542,7 +542,7 @@ EXT FILE *rxevent_debugFile;        /* Set to an stdio descriptor for event logging to
 #ifdef AFS_NT40_ENV
 EXT int rxdebug_active;
 #if !defined(_WIN64)
-#define dpf(args) if (rxdebug_active) rxi_DebugPrint args;
+#define dpf(args) do { if (rx_debugFile) rxi_DebugPrint args; } while (0)
 #else
 #define dpf(args)
 #endif