From 223ff5165fd7bedc8b547400aae10cb4e289e8eb Mon Sep 17 00:00:00 2001 From: Luiz Augusto von Dentz Date: Mon, 14 Jun 2010 17:13:14 +0300 Subject: [PATCH] obexd: Rename debug() into log_debug() to hide it in favor of DBG() --- obexd/src/log.c | 4 ++-- obexd/src/log.h | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/obexd/src/log.c b/obexd/src/log.c index fe045a4a9..ac8327c18 100644 --- a/obexd/src/log.c +++ b/obexd/src/log.c @@ -57,7 +57,7 @@ void error(const char *format, ...) va_end(ap); } -void debug(const char *format, ...) +void log_debug(const char *format, ...) { va_list ap; @@ -185,7 +185,7 @@ void obex_debug(int evt, int cmd, int rsp) rspstr = obex_response[i].name; } - debug("%s(0x%x), %s(0x%x), %s(0x%x)", evtstr, evt, cmdstr, cmd, + log_debug("%s(0x%x), %s(0x%x), %s(0x%x)", evtstr, evt, cmdstr, cmd, rspstr, rsp); } diff --git a/obexd/src/log.h b/obexd/src/log.h index 897924da2..12dc5137a 100644 --- a/obexd/src/log.h +++ b/obexd/src/log.h @@ -23,7 +23,7 @@ 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 log_debug(const char *format, ...) __attribute__((format(printf, 1, 2))); void obex_debug(int evt, int cmd, int rsp); void log_init(const char *ident, const char *debug, int log_option); @@ -52,5 +52,5 @@ struct log_debug_desc { .file = __FILE__, .flags = LOG_DEBUG_FLAG_DEFAULT, \ }; \ if (__log_debug_desc.flags & LOG_DEBUG_FLAG_PRINT) \ - debug("%s:%s() " fmt, __FILE__, __FUNCTION__ , ## arg); \ + log_debug("%s:%s() " fmt, __FILE__, __FUNCTION__ , ## arg); \ } while (0) -- 2.47.3