diff options
author | hunt <hunt> | 2005-08-22 19:06:42 +0000 |
---|---|---|
committer | hunt <hunt> | 2005-08-22 19:06:42 +0000 |
commit | d313050f975d945bedacab47b883da41af7e3a97 (patch) | |
tree | ea16ada7f7b7757573a8cc93dac1d9da94741597 /runtime/stpd/librelay.h | |
parent | 66b6f687920815b1687a398287ebeb8b3a4a9b57 (diff) | |
download | systemtap-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.h | 6 |
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 */ |