From: Emil Velikov Date: Tue, 28 Jan 2014 01:20:45 +0000 (+0000) Subject: loader: print WARNING and FATAL messages using the default logger X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=780dfc1fec491d5c5c6982b9feccf01d5a45660b;p=mesa.git loader: print WARNING and FATAL messages using the default logger Lower values are used for more severe cases. Signed-off-by: Emil Velikov Reviewed-by: Eric Anholt Reviewed-by: Kenneth Graunke --- diff --git a/src/loader/loader.c b/src/loader/loader.c index ee4c1e08db7..e61c9d81a16 100644 --- a/src/loader/loader.c +++ b/src/loader/loader.c @@ -82,7 +82,7 @@ static void default_logger(int level, const char *fmt, ...) { - if (level >= _LOADER_WARNING) { + if (level <= _LOADER_WARNING) { va_list args; va_start(args, fmt); vfprintf(stderr, fmt, args);