Message ID | 20220620231328.3845126-2-paulmck@kernel.org (mailing list archive) |
---|---|
State | Mainlined |
Commit | 4f2c9703a128d21db7d0bf2ea14c5fe50d0dfe7e |
Headers | show |
Series | nolibc updates for v5.20 | expand |
diff --git a/tools/include/nolibc/stdio.h b/tools/include/nolibc/stdio.h index 15dedf8d0902d..a3cebc4bc3ac4 100644 --- a/tools/include/nolibc/stdio.h +++ b/tools/include/nolibc/stdio.h @@ -273,7 +273,7 @@ int vfprintf(FILE *stream, const char *fmt, va_list args) return written; } -static __attribute__((unused)) +static __attribute__((unused, format(printf, 2, 3))) int fprintf(FILE *stream, const char *fmt, ...) { va_list args; @@ -285,7 +285,7 @@ int fprintf(FILE *stream, const char *fmt, ...) return ret; } -static __attribute__((unused)) +static __attribute__((unused, format(printf, 1, 2))) int printf(const char *fmt, ...) { va_list args;