summaryrefslogtreecommitdiff
path: root/include/log.h
diff options
context:
space:
mode:
authorMarcel Holtmann <marcel@holtmann.org>2010-01-26 09:53:22 +0100
committerMarcel Holtmann <marcel@holtmann.org>2010-01-26 09:53:22 +0100
commit27be9cd90e7aaa96af669282e5c7e34dbb38fbfa (patch)
tree745bab7ae6e65fb4bd1f8d0b3d95d662236179c3 /include/log.h
parentf54325fafc4b085ae2924ed141b1e8d519b52034 (diff)
downloadconnman-27be9cd90e7aaa96af669282e5c7e34dbb38fbfa.tar.gz
connman-27be9cd90e7aaa96af669282e5c7e34dbb38fbfa.tar.bz2
connman-27be9cd90e7aaa96af669282e5c7e34dbb38fbfa.zip
Use more unique debug descriptor
Diffstat (limited to 'include/log.h')
-rw-r--r--include/log.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/log.h b/include/log.h
index cf5d1904..2dec6ed2 100644
--- a/include/log.h
+++ b/include/log.h
@@ -65,11 +65,11 @@ struct connman_debug_desc {
* name it is called in.
*/
#define DBG(fmt, arg...) do { \
- static struct connman_debug_desc desc \
+ static struct connman_debug_desc __connman_debug_desc \
__attribute__((used, section("__debug"), aligned(8))) = { \
.file = __FILE__, .flags = CONNMAN_DEBUG_FLAG_DEFAULT, \
}; \
- if (desc.flags & CONNMAN_DEBUG_FLAG_PRINT) \
+ if (__connman_debug_desc.flags & CONNMAN_DEBUG_FLAG_PRINT) \
connman_debug("%s:%s() " fmt, \
__FILE__, __FUNCTION__ , ## arg); \
} while (0)