From eef93c82a0e106dd12c29c1ed3a06502d92bcef2 Mon Sep 17 00:00:00 2001 From: Marcel Holtmann Date: Sun, 8 Jun 2008 20:53:31 +0000 Subject: Add special DBG helper --- common/logging.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'common/logging.h') 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 */ -- cgit