summaryrefslogtreecommitdiff
path: root/src/log.h
diff options
context:
space:
mode:
authorMarcel Holtmann <marcel@holtmann.org>2010-06-12 20:43:35 +0200
committerMarcel Holtmann <marcel@holtmann.org>2010-06-12 20:43:35 +0200
commiteac1d8bdf2570ef7e1548340a804c1d68549af96 (patch)
treec23103f6fea1a2be2ccc7086ea49866872bb24e4 /src/log.h
parenta30b7569ba6867f58f62634a894d0aabde01280d (diff)
downloadbluez-eac1d8bdf2570ef7e1548340a804c1d68549af96.tar.gz
Rename debug() into btd_debug() to hide it in favor of DBG()
Diffstat (limited to 'src/log.h')
-rw-r--r--src/log.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/log.h b/src/log.h
index 0afd739c4..1706d2def 100644
--- a/src/log.h
+++ b/src/log.h
@@ -23,7 +23,8 @@
void info(const char *format, ...) __attribute__((format(printf, 1, 2)));
void error(const char *format, ...) __attribute__((format(printf, 1, 2)));
-void debug(const char *format, ...) __attribute__((format(printf, 1, 2)));
+
+void btd_debug(const char *format, ...) __attribute__((format(printf, 1, 2)));
void __btd_log_init(const char *debug, int detach);
void __btd_log_cleanup(void);
@@ -44,7 +45,7 @@ struct btd_debug_desc {
* @fmt: format string
* @arg...: list of arguments
*
- * Simple macro around debug() which also include the function
+ * Simple macro around btd_debug() which also include the function
* name it is called in.
*/
#define DBG(fmt, arg...) do { \
@@ -54,7 +55,7 @@ struct btd_debug_desc {
}; \
if (debug_enabled && \
__btd_debug_desc.flags & BTD_DEBUG_FLAG_PRINT) \
- debug("%s:%s() " fmt, \
+ btd_debug("%s:%s() " fmt, \
__FILE__, __FUNCTION__ , ## arg); \
} while (0)