summaryrefslogtreecommitdiffstats
path: root/common/logging.h
diff options
context:
space:
mode:
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 */