tools/nolibc: annotate va_list printf formats
authorThomas Weißschuh <linux@weissschuh.net>
Thu, 23 Nov 2023 21:53:13 +0000 (22:53 +0100)
committerThomas Weißschuh <linux@weissschuh.net>
Mon, 11 Dec 2023 21:38:32 +0000 (22:38 +0100)
commitdece8476d6dda087cacb8e105bb70e02a9ef9387
tree8ca9eb2beb410d64ff4361666f7820a2493d5bb0
parentb9e64724cd8aeca9e7ab4523a92ccf2ba0cd1de2
tools/nolibc: annotate va_list printf formats

__attribute__(format(printf)) can also be used for functions that take a
va_list argument.

As per the GCC docs:

    For functions where the arguments are not available to be checked
    (such as vprintf), specify the third parameter as zero.

Link: https://gcc.gnu.org/onlinedocs/gcc/Common-Function-Attributes.html
Signed-off-by: Thomas Weißschuh <linux@weissschuh.net>
tools/include/nolibc/stdio.h