X-Git-Url: http://git.tuebingen.mpg.de/?a=blobdiff_plain;f=gui.c;h=f08976d2575d96afca710fb5d0b7b4bdd9246ab4;hb=8221397af24a2df3c2edbc889847ce0ab15eb3e0;hp=588507154bfb0e620b256c08c2ce6914b1b7c0e6;hpb=e37500d29b2b699762e1aa196b14c41303bb1055;p=paraslash.git diff --git a/gui.c b/gui.c index 58850715..f08976d2 100644 --- a/gui.c +++ b/gui.c @@ -1,5 +1,5 @@ /* - * Copyright (C) 1998-2008 Andre Noll + * Copyright (C) 1998-2009 Andre Noll * * Licensed under the GPL v2. For licencing details see COPYING. */ @@ -489,7 +489,7 @@ static int add_output_line(char *line, __a_unused void *data) return 1; } -void para_log(int ll, const char *fmt,...) +__printf_2_3 void para_log(int ll, const char *fmt,...) { int color; char *msg; @@ -497,9 +497,9 @@ void para_log(int ll, const char *fmt,...) if (ll < conf.loglevel_arg || !curses_active) return; switch (ll) { - case DEBUG: - case INFO: - case NOTICE: + case LL_DEBUG: + case LL_INFO: + case LL_NOTICE: color = COLOR_MSG; break; default: @@ -563,7 +563,7 @@ __noreturn __printf_2_3 static void msg_n_exit(int ret, const char* fmt, ...) static void print_welcome(void) { int ll = conf.loglevel_arg; - if (ll > NOTICE) + if (ll > LL_NOTICE) return; outputf(COLOR_WELCOME, "Welcome to para_gui " PACKAGE_VERSION " \"" CODENAME "\". Theme: %s", theme.name); @@ -1168,7 +1168,7 @@ err_out: static void com_ll_decr(void) { - if (conf.loglevel_arg <= DEBUG) { + if (conf.loglevel_arg <= LL_DEBUG) { print_in_bar(COLOR_ERRMSG, "loglevel already at maximal verbosity\n"); return; @@ -1179,7 +1179,7 @@ static void com_ll_decr(void) static void com_ll_incr(void) { - if (conf.loglevel_arg >= EMERG) { + if (conf.loglevel_arg >= LL_EMERG) { print_in_bar(COLOR_ERRMSG, "loglevel already at miminal verbosity\n"); return;