Include filename in debug output
authorMarcel Holtmann <marcel@holtmann.org>
Sun, 20 Apr 2008 07:48:56 +0000 (09:48 +0200)
committerMarcel Holtmann <marcel@holtmann.org>
Sun, 20 Apr 2008 07:48:56 +0000 (09:48 +0200)
include/log.h

index ec0d648..8a0b5a5 100644 (file)
 extern "C" {
 #endif
 
-#define DBG(fmt, arg...) connman_debug("%s: " fmt, __FUNCTION__ , ## arg)
-
 extern void connman_info(const char *format, ...);
 extern void connman_error(const char *format, ...);
 extern void connman_debug(const char *format, ...);
 
+#define DBG(fmt, arg...) connman_debug("%s:%s() " fmt, __FILE__, __FUNCTION__ , ## arg)
+
 #ifdef __cplusplus
 }
 #endif