Use more unique debug descriptor
authorMarcel Holtmann <marcel@holtmann.org>
Tue, 26 Jan 2010 08:53:22 +0000 (09:53 +0100)
committerMarcel Holtmann <marcel@holtmann.org>
Tue, 26 Jan 2010 08:53:22 +0000 (09:53 +0100)
include/log.h

index cf5d19047fcd7f340ae9385d9d8e2525b5cb5492..2dec6ed20ecde28295a11a814664818c716a6a46 100644 (file)
@@ -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)