X-Git-Url: https://git.liburcu.org/?p=urcu.git;a=blobdiff_plain;f=rculfhash-internal.h;h=d7cec95a10e286f4693c91925e61441146196ebe;hp=284125af29887ca474206391ae69e0fe5d7eec2f;hb=074c3a1bde68f3d2607c5c4711ec456dbdb05bce;hpb=79d5479e9f6dfe097fc24b0ddf2fe7fd1ba0f43b diff --git a/rculfhash-internal.h b/rculfhash-internal.h index 284125a..d7cec95 100644 --- a/rculfhash-internal.h +++ b/rculfhash-internal.h @@ -25,11 +25,17 @@ */ #include +#include #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)