X-Git-Url: http://git.tuebingen.mpg.de/?p=paraslash.git;a=blobdiff_plain;f=gui.c;h=f08976d2575d96afca710fb5d0b7b4bdd9246ab4;hp=616890299047629dcaad4541a239efae19f2b76c;hb=8221397af24a2df3c2edbc889847ce0ab15eb3e0;hpb=ebe54cf6ee1b9c5daf7837cb618c299a5b5187e0 diff --git a/gui.c b/gui.c index 61689029..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. */ @@ -497,9 +497,9 @@ __printf_2_3 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;