From d313050f975d945bedacab47b883da41af7e3a97 Mon Sep 17 00:00:00 2001 From: hunt Date: Mon, 22 Aug 2005 19:06:42 +0000 Subject: 2005-08-22 Martin Hunt * Makefile (debug): Add debug target. * librelay.h (dbug): Define. * librelay.c: Enable some dbug lines. --- runtime/stpd/librelay.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'runtime/stpd/librelay.h') 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 */ -- cgit