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

rework dpf macro slightly so there are no trailing ; issues

(cherry picked from commit 2d5987ea2bd96285899f1e5a141dcdaed8008e7e)

src/rx/rx_globals.h

index 5be5617436f03bc8523f6d0bd557bb23e8d5fbe8..b35572215d08b0b068a209c945464c54af3dd313 100644 (file)
@@ -538,7 +538,7 @@ EXT int rxdebug_active;
 #ifdef DPF_FSLOG
 #define dpf(args) FSLog args
 #else
-#define dpf(args) if (rx_debugFile) rxi_DebugPrint args; else
+#define dpf(args) do { if (rx_debugFile) rxi_DebugPrint args; } while (0)
 #endif 
 #endif
 #define rx_Log_event rxevent_debugFile