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@xxxxxxxx> --- 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 _______________________________________________ Intel-gfx mailing list Intel-gfx@xxxxxxxxxxxxxxxxxxxxx http://lists.freedesktop.org/mailman/listinfo/intel-gfx