projects
/
userspace-rcu.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
rculfhash: replace unneeded rcu_dereference by CMM_LOAD_SHARED
[userspace-rcu.git]
/
rculfhash-internal.h
diff --git
a/rculfhash-internal.h
b/rculfhash-internal.h
index 284125af29887ca474206391ae69e0fe5d7eec2f..d7cec95a10e286f4693c91925e61441146196ebe 100644
(file)
--- a/
rculfhash-internal.h
+++ b/
rculfhash-internal.h
@@
-25,11
+25,17
@@
*/
#include <urcu/rculfhash.h>
*/
#include <urcu/rculfhash.h>
+#include <stdio.h>
#ifdef DEBUG
#define dbg_printf(fmt, args...) printf("[debug rculfhash] " fmt, ## args)
#else
#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)
#endif
#if (CAA_BITS_PER_LONG == 32)
This page took
0.025205 seconds
and
4
git commands to generate.