diff options
author | Marcel Holtmann <marcel@holtmann.org> | 2010-06-12 20:43:35 +0200 |
---|---|---|
committer | Marcel Holtmann <marcel@holtmann.org> | 2010-06-12 20:43:35 +0200 |
commit | eac1d8bdf2570ef7e1548340a804c1d68549af96 (patch) | |
tree | c23103f6fea1a2be2ccc7086ea49866872bb24e4 /src/log.h | |
parent | a30b7569ba6867f58f62634a894d0aabde01280d (diff) | |
download | bluez-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.h | 7 |
1 files changed, 4 insertions, 3 deletions
@@ -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) |