Backport HT fixes from urcu upstream
[lttng-tools.git] / src / common / hashtable / rculfhash-internal.h
index cb13ffa73f773486d77dca0a9fcb5407a8202356..e3a59ba179babb86b14d458274fefc4b6084c7f5 100644 (file)
@@ -1,5 +1,5 @@
-#ifndef _URCU_RCULFHASH_INTERNAL_H
-#define _URCU_RCULFHASH_INTERNAL_H
+#ifndef URCU_RCULFHASH_INTERNAL_H
+#define URCU_RCULFHASH_INTERNAL_H
 
 /*
  * urcu/rculfhash-internal.h
  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
  */
 
+#include <stdio.h>
+
 #include "rculfhash.h"
 
 #ifdef DEBUG
 #define dbg_printf(fmt, args...)     printf("[debug rculfhash] " fmt, ## args)
 #else
-#define dbg_printf(fmt, args...)
+#define dbg_printf(fmt, args...)                               \
+do {                                                           \
+       /* do nothing but check printf format */                \
+       if (0)                                                  \
+               printf("[debug rculfhash] " fmt, ## args);      \
+} while (0)
 #endif
 
 #if (CAA_BITS_PER_LONG == 32)
This page took 0.023074 seconds and 4 git commands to generate.