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

Thomas Wood thomas.wood at intel.com
Tue Jan 27 03:17:01 PST 2015


These messages are sent to stderr and could indicate an issue when
enumerating subtests.

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

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)
-- 
2.1.0



More information about the Intel-gfx mailing list