mirror of
https://github.com/tiagovignatti/intel-gpu-tools.git
synced 2025-06-10 09:26:10 +00:00
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>
This commit is contained in:
parent
ea18fc16cd
commit
2839619f49
@ -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);
|
||||
|
||||
/**
|
||||
|
Loading…
x
Reference in New Issue
Block a user