loader: print WARNING and FATAL messages using the default logger
authorEmil Velikov <emil.l.velikov@gmail.com>
Tue, 28 Jan 2014 01:20:45 +0000 (01:20 +0000)
committerEmil Velikov <emil.l.velikov@gmail.com>
Wed, 29 Jan 2014 19:53:53 +0000 (19:53 +0000)
Lower values are used for more severe cases.

Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com>
Reviewed-by: Eric Anholt <eric@anholt.net>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
src/loader/loader.c

index ee4c1e08db7338a20141948b0a4df4274a6cb93c..e61c9d81a16f5ef888c43c9937a42fad494a5256 100644 (file)
@@ -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);