loader: print WARNING and FATAL messages using the default logger

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>
This commit is contained in:
Emil Velikov 2014-01-28 01:20:45 +00:00
parent 4c35e32594
commit 780dfc1fec

View 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);