diff options
author | Luiz Augusto von Dentz <luiz.dentz-von@nokia.com> | 2010-06-28 13:59:26 +0300 |
---|---|---|
committer | Luiz Augusto von Dentz <luiz.dentz-von@nokia.com> | 2010-06-29 10:29:10 +0300 |
commit | 5e9d2a595902ac3fad577923c50e1ec92bfba179 (patch) | |
tree | 3d327ab1b926de49994d987c108b51abd675db5e /src/log.h | |
parent | 5eed41df3e9554e27756f796bc45635d78ca63a8 (diff) | |
download | bluez-5e9d2a595902ac3fad577923c50e1ec92bfba179.tar.gz |
Fix some code style issues
Diffstat (limited to 'src/log.h')
-rw-r--r-- | src/log.h | 19 |
1 files changed, 9 insertions, 10 deletions
@@ -31,11 +31,11 @@ void __btd_log_cleanup(void); void __btd_toggle_debug(); struct btd_debug_desc { - const char *name; - const char *file; + const char *name; + const char *file; #define BTD_DEBUG_FLAG_DEFAULT (0) #define BTD_DEBUG_FLAG_PRINT (1 << 0) - unsigned int flags; + unsigned int flags; } __attribute__((aligned(8))); /** @@ -47,12 +47,11 @@ struct btd_debug_desc { * name it is called in. */ #define DBG(fmt, arg...) do { \ - static struct btd_debug_desc __btd_debug_desc \ - __attribute__((used, section("__debug"), aligned(8))) = { \ - .file = __FILE__, .flags = BTD_DEBUG_FLAG_DEFAULT, \ - }; \ - if (__btd_debug_desc.flags & BTD_DEBUG_FLAG_PRINT) \ - btd_debug("%s:%s() " fmt, \ - __FILE__, __FUNCTION__ , ## arg); \ + static struct btd_debug_desc __btd_debug_desc \ + __attribute__((used, section("__debug"), aligned(8))) = { \ + .file = __FILE__, .flags = BTD_DEBUG_FLAG_DEFAULT, \ + }; \ + if (__btd_debug_desc.flags & BTD_DEBUG_FLAG_PRINT) \ + btd_debug("%s:%s() " fmt, __FILE__, __FUNCTION__ , ## arg); \ } while (0) |