projects
/
lttng-tools.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Introduce utils_create_pipe_cloexec_nonblock()
[lttng-tools.git]
/
src
/
common
/
hashtable
/
rculfhash-internal.h
diff --git
a/src/common/hashtable/rculfhash-internal.h
b/src/common/hashtable/rculfhash-internal.h
index cb13ffa73f773486d77dca0a9fcb5407a8202356..e3a59ba179babb86b14d458274fefc4b6084c7f5 100644
(file)
--- a/
src/common/hashtable/rculfhash-internal.h
+++ b/
src/common/hashtable/rculfhash-internal.h
@@
-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
/*
* urcu/rculfhash-internal.h
@@
-24,12
+24,19
@@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
* 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
#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)
#endif
#if (CAA_BITS_PER_LONG == 32)
This page took
0.025978 seconds
and
4
git commands to generate.