diff mbox

[i-g-t,2/3] lib: print warning and critical messages when listing subtests

Message ID 1422357422-4315-2-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
These messages are sent to stderr and could indicate an issue when
enumerating subtests.

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 2692fe4..bc588e2 100644
--- a/lib/igt_core.c
+++ b/lib/igt_core.c
@@ -1507,7 +1507,7 @@  void igt_vlog(const char *domain, enum igt_log_level level, const char *format,
 	program_name = command_str;
 #endif
 
-	if (list_subtests)
+	if (list_subtests && level <= IGT_LOG_WARN)
 		return;
 
 	if (igt_log_level > level)