diff options
author | Vincent Sanders <vince@kyllikki.org> | 2015-05-28 16:08:46 +0100 |
---|---|---|
committer | Vincent Sanders <vince@kyllikki.org> | 2015-05-28 16:08:46 +0100 |
commit | c105738fa36bb2400adc47399c5b878d252d1c86 (patch) | |
tree | 138eeb449e1bf51ee1726b5f820740aada0ccd0b /atari/cookies.c | |
parent | 20f2c86a511f7913cf858e7bd3668b0b59663ba0 (diff) | |
download | netsurf-c105738fa36bb2400adc47399c5b878d252d1c86.tar.gz netsurf-c105738fa36bb2400adc47399c5b878d252d1c86.tar.bz2 |
Change LOG() macro to be varadic
This changes the LOG macro to be varadic removing the need for all
callsites to have double bracketing and allows for future improvement
on how we use the logging macros.
The callsites were changed with coccinelle and the changes checked by
hand. Compile tested for several frontends but not all.
A formatting annotation has also been added which allows the compiler
to check the parameters and types passed to the logging.
Diffstat (limited to 'atari/cookies.c')
-rw-r--r-- | atari/cookies.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/atari/cookies.c b/atari/cookies.c index 0d4704e27..4578f38a4 100644 --- a/atari/cookies.c +++ b/atari/cookies.c @@ -74,13 +74,13 @@ static struct atari_treeview_callbacks atari_cookie_manager_treeview_callbacks = static nserror atari_cookie_manager_init_phase2(struct core_window *cw, struct core_window_callback_table *cb_t) { - LOG(("")); + LOG(""); return(cookie_manager_init(cb_t, cw)); } static void atari_cookie_manager_finish(struct core_window *cw) { - LOG(("")); + LOG(""); cookie_manager_fini(); } @@ -93,7 +93,7 @@ static void atari_cookie_manager_draw(struct core_window *cw, int x, static void atari_cookie_manager_keypress(struct core_window *cw, uint32_t ucs4) { - LOG(("ucs4: %lu\n", ucs4)); + LOG("ucs4: %lu\n", ucs4); cookie_manager_keypress(ucs4); } @@ -110,13 +110,13 @@ static short handle_event(GUIWIN *win, EVMULT_OUT *ev_out, short msg[8]) { short retval = 0; - LOG(("")); + LOG(""); if(ev_out->emo_events & MU_MESAG){ switch (msg[0]) { case WM_TOOLBAR: - LOG(("WM_TOOLBAR")); + LOG("WM_TOOLBAR"); break; case WM_CLOSED: @@ -160,7 +160,7 @@ void atari_cookie_manager_init(void) if (atari_cookie_manager.tv == NULL) { /* handle it properly, clean up previous allocs */ - LOG(("Failed to allocate treeview")); + LOG("Failed to allocate treeview"); return; } @@ -211,7 +211,7 @@ void atari_cookie_manager_destroy(void) atari_treeview_delete(atari_cookie_manager.tv); atari_cookie_manager.init = false; } - LOG(("done")); + LOG("done"); } |