diff mbox

[i-g-t,1/3] lib: warning messages should be sent to stderr

Message ID 1422357422-4315-1-git-send-email-thomas.wood@intel.com (mailing list archive)
State New, archived
Headers show

Commit Message

Thomas Wood Jan. 27, 2015, 11:17 a.m. UTC
This is a regression from commit df11a0f (lib: add a critical warning
level).

Signed-off-by: Thomas Wood <thomas.wood@intel.com>
---
 lib/igt_core.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox

Patch

diff --git a/lib/igt_core.c b/lib/igt_core.c
index 7b47b32..2692fe4 100644
--- a/lib/igt_core.c
+++ b/lib/igt_core.c
@@ -1522,7 +1522,7 @@  void igt_vlog(const char *domain, enum igt_log_level level, const char *format,
 			return;
 	}
 
-	if (level > IGT_LOG_WARN) {
+	if (level >= IGT_LOG_WARN) {
 		file = stderr;
 		fflush(stdout);
 	}