summaryrefslogtreecommitdiffstats
path: root/common/logging.h
diff options
context:
space:
mode:
authorMarcel Holtmann <marcel@holtmann.org>2008-06-08 20:53:31 +0000
committerMarcel Holtmann <marcel@holtmann.org>2008-06-08 20:53:31 +0000
commiteef93c82a0e106dd12c29c1ed3a06502d92bcef2 (patch)
tree2df02bb71a6d8b97a58b35d81716aa81f250b95f /common/logging.h
parent32033cb14df0294a742e9e8c6b5ffa8aa26c2cc1 (diff)
Add special DBG helper
Diffstat (limited to 'common/logging.h')
-rw-r--r--common/logging.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/common/logging.h b/common/logging.h
index e99131e5..822eb15a 100644
--- a/common/logging.h
+++ b/common/logging.h
@@ -33,4 +33,6 @@ void disable_debug(void);
void start_logging(const char *ident, const char *message, ...);
void stop_logging(void);
+#define DBG(fmt, arg...) debug("%s: " fmt "\n" , __FUNCTION__ , ## arg)
+
#endif /* __LOGGING_H */