mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-06 06:40:08 +01:00
panfrost: decode: Flag pandecode_log_typed() as PRINTFLIKE
This way we can catch mismatch between the format string and the arguments. Suggested-by: Kristian H. Kristensen <hoegsberg@google.com> Signed-off-by: Boris Brezillon <boris.brezillon@collabora.com> Reviewed-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6886>
This commit is contained in:
parent
12b00b77c6
commit
f9977f8729
1 changed files with 1 additions and 1 deletions
|
|
@ -115,7 +115,7 @@ pandecode_make_indent(void)
|
|||
fprintf(pandecode_dump_stream, " ");
|
||||
}
|
||||
|
||||
static void
|
||||
static void PRINTFLIKE(2, 3)
|
||||
pandecode_log_typed(enum pandecode_log_type type, const char *format, ...)
|
||||
{
|
||||
va_list ap;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue