projects
/
libradsec.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Add and use rs_debug() instead of fprintf to stderr.
[libradsec.git]
/
lib
/
debug.h
diff --git
a/lib/debug.h
b/lib/debug.h
index
09a6529
..
3156c24
100644
(file)
--- a/
lib/debug.h
+++ b/
lib/debug.h
@@
-14,6
+14,12
@@
extern "C" {
void rs_dump_packet (const struct rs_packet *pkt);
void rs_dump_attr (const struct rs_attr *attr);
+#if defined DEBUG
+int rs_debug (const char *fmt, ...);
+#else
+#define rs_debug (void)
+#endif
+
#if defined (__cplusplus)
}
#endif