diff options
author | Daniel Vetter <daniel.vetter@ffwll.ch> | 2014-03-14 16:06:51 +0100 |
---|---|---|
committer | Daniel Vetter <daniel.vetter@ffwll.ch> | 2014-03-14 16:06:51 +0100 |
commit | 2839619f497dae8353d0592dcccf183374a18f73 (patch) | |
tree | 58566947a46af68682d58300b1066f91fce44fa8 /lib/igt_core.h | |
parent | ea18fc16cd88a31b5d390721ad103efa07e288f1 (diff) |
lib/igt_core: add printf attribute to igt_vlog
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@ffwll.ch>
Diffstat (limited to 'lib/igt_core.h')
-rw-r--r-- | lib/igt_core.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/igt_core.h b/lib/igt_core.h index 5c9065a5..a8bb28e1 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); /** |