[Intel-gfx] [PATCH i-g-t 1/5] lib: share common logging code

Thomas Wood thomas.wood at intel.com
Tue Dec 2 09:15:35 PST 2014


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

diff --git a/lib/igt_core.c b/lib/igt_core.c
index 3fd4595..f7763b5 100644
--- a/lib/igt_core.c
+++ b/lib/igt_core.c
@@ -1433,20 +1433,8 @@ void igt_log(enum igt_log_level level, const char *format, ...)
 {
 	va_list args;
 
-	assert(format);
-
-	if (list_subtests)
-		return;
-
-	if (igt_log_level > level)
-		return;
-
 	va_start(args, format);
-	if (level == IGT_LOG_WARN) {
-		fflush(stdout);
-		vfprintf(stderr, format, args);
-	} else
-		vprintf(format, args);
+	igt_vlog(level, format, args)
 	va_end(args);
 }
 
-- 
2.1.0




More information about the Intel-gfx mailing list