[Intel-gfx] [PATCH 2/3] lib/igt_core: add printf attribute to igt_vlog

Daniel Vetter daniel.vetter at ffwll.ch
Fri Mar 14 16:16:03 CET 2014


I didn't know that this also works for the varargs versions of
format strings. But gcc was kind enough to let me know.

Signed-off-by: Daniel Vetter <daniel.vetter at ffwll.ch>
---
 lib/igt_core.h | 1 +
 1 file changed, 1 insertion(+)

diff --git a/lib/igt_core.h b/lib/igt_core.h
index 5c9065a5f1fb..a8bb28e18e33 100644
--- a/lib/igt_core.h
+++ b/lib/igt_core.h
@@ -389,6 +389,7 @@ enum igt_log_level {
 };
 __attribute__((format(printf, 2, 3)))
 void igt_log(enum igt_log_level level, const char *format, ...);
+__attribute__((format(printf, 2, 0)))
 void igt_vlog(enum igt_log_level level, const char *format, va_list args);
 
 /**
-- 
1.8.4.rc3




More information about the Intel-gfx mailing list