[PATCH] lib/igt_core: Don't log when listing subtests

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



I've noticed some spam in the userptr list ...

Signed-off-by: Daniel Vetter <daniel.vetter@xxxxxxxx>
---
 lib/igt_core.c | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/lib/igt_core.c b/lib/igt_core.c
index bdeeb59971de..856262be34fa 100644
--- a/lib/igt_core.c
+++ b/lib/igt_core.c
@@ -1200,6 +1200,9 @@ void igt_log(enum igt_log_level level, const char *format, ...)
 
 	assert(format);
 
+	if (list_subtests)
+		return;
+
 	if (igt_log_level > level)
 		return;
 
@@ -1229,6 +1232,9 @@ void igt_vlog(enum igt_log_level level, const char *format, va_list args)
 {
 	assert(format);
 
+	if (list_subtests)
+		return;
+
 	if (igt_log_level > level)
 		return;
 
-- 
2.0.0

_______________________________________________
Intel-gfx mailing list
Intel-gfx@xxxxxxxxxxxxxxxxxxxxx
http://lists.freedesktop.org/mailman/listinfo/intel-gfx




[Index of Archives]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]
  Powered by Linux