diff options
author | Luiz Augusto von Dentz <luiz.von.dentz@intel.com> | 2012-08-06 17:27:20 +0300 |
---|---|---|
committer | Luiz Augusto von Dentz <luiz.von.dentz@intel.com> | 2012-08-07 16:30:18 +0300 |
commit | 0c5ebef8cca918aa79139ffac10f9e8c9de4d370 (patch) | |
tree | 8f4faab3a6df255b433816eaa8b394e8c9ecc374 /gobex/gobex-debug.h | |
parent | 73bb0a0de9aace7b596d1acb71e931ac465a212f (diff) | |
download | obexd-0c5ebef8cca918aa79139ffac10f9e8c9de4d370.tar.gz |
gobex: Fix not printing debug messages when GOBEX_DEBUG is set
g_debug doesn't print anything if domain is not present in
G_MESSAGES_DEBUG.
Diffstat (limited to 'gobex/gobex-debug.h')
-rw-r--r-- | gobex/gobex-debug.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gobex/gobex-debug.h b/gobex/gobex-debug.h index 589104e..14faa10 100644 --- a/gobex/gobex-debug.h +++ b/gobex/gobex-debug.h @@ -37,8 +37,8 @@ extern guint gobex_debug; #define g_obex_debug(level, format, ...) \ if (gobex_debug & level) \ - g_debug("%s:%s() " format, __FILE__, __FUNCTION__, \ - ## __VA_ARGS__) + g_log("gobex", G_LOG_LEVEL_DEBUG, "%s:%s() " format, __FILE__, \ + __FUNCTION__, ## __VA_ARGS__) static inline void g_obex_dump(const char *prefix, const void *buf, gsize len) |