summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorMarcel Holtmann <marcel@holtmann.org>2008-04-20 09:48:56 +0200
committerMarcel Holtmann <marcel@holtmann.org>2008-04-20 09:48:56 +0200
commite7fcf53b8b53c0e69996d8881713694b8c48f016 (patch)
treea326c4a3bbf69c82653a35f47b88c09981769c7c /include
parentb9e1ef0522fd3aabc8f8ba9f4403d9301e5e9207 (diff)
downloadconnman-e7fcf53b8b53c0e69996d8881713694b8c48f016.tar.gz
connman-e7fcf53b8b53c0e69996d8881713694b8c48f016.tar.bz2
connman-e7fcf53b8b53c0e69996d8881713694b8c48f016.zip
Include filename in debug output
Diffstat (limited to 'include')
-rw-r--r--include/log.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/log.h b/include/log.h
index ec0d6481..8a0b5a52 100644
--- a/include/log.h
+++ b/include/log.h
@@ -26,12 +26,12 @@
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