summaryrefslogtreecommitdiffstats
path: root/runtime/stpd/librelay.h
diff options
context:
space:
mode:
authorhunt <hunt>2005-08-22 19:06:42 +0000
committerhunt <hunt>2005-08-22 19:06:42 +0000
commitd313050f975d945bedacab47b883da41af7e3a97 (patch)
treeea16ada7f7b7757573a8cc93dac1d9da94741597 /runtime/stpd/librelay.h
parent66b6f687920815b1687a398287ebeb8b3a4a9b57 (diff)
downloadsystemtap-steved-d313050f975d945bedacab47b883da41af7e3a97.tar.gz
systemtap-steved-d313050f975d945bedacab47b883da41af7e3a97.tar.xz
systemtap-steved-d313050f975d945bedacab47b883da41af7e3a97.zip
2005-08-22 Martin Hunt <hunt@redhat.com>
* Makefile (debug): Add debug target. * librelay.h (dbug): Define. * librelay.c: Enable some dbug lines.
Diffstat (limited to 'runtime/stpd/librelay.h')
-rw-r--r--runtime/stpd/librelay.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/runtime/stpd/librelay.h b/runtime/stpd/librelay.h
index 371ddfbd..71150858 100644
--- a/runtime/stpd/librelay.h
+++ b/runtime/stpd/librelay.h
@@ -1,5 +1,11 @@
#include "../transport/transport_msgs.h"
+#ifdef DEBUG
+#define dbug(args...) {printf("%s:%d ",__FUNCTION__, __LINE__); printf(args); }
+#else
+#define dbug(args...) ;
+#endif /* DEBUG */
+
/*
* stp external API functions
*/