diff options
Diffstat (limited to 'payloads/libpayload/include')
-rw-r--r-- | payloads/libpayload/include/stdio.h | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/payloads/libpayload/include/stdio.h b/payloads/libpayload/include/stdio.h index 924d17e849..d2db640118 100644 --- a/payloads/libpayload/include/stdio.h +++ b/payloads/libpayload/include/stdio.h @@ -42,10 +42,14 @@ extern FILE *stdout, *stdin, *stderr; * @defgroup printf Print functions * @{ */ -int snprintf(char *str, size_t size, const char *fmt, ...); -int sprintf(char *str, const char *fmt, ...); -int printf(const char *fmt, ...); -int fprintf(FILE *file, const char *fmt, ...); +int snprintf(char *str, size_t size, const char *fmt, ...) + __attribute__ ((format (printf, 3, 4))); +int sprintf(char *str, const char *fmt, ...) + __attribute__ ((format (printf, 2, 3))); +int printf(const char *fmt, ...) + __attribute__ ((format (printf, 1, 2))); +int fprintf(FILE *file, const char *fmt, ...) + __attribute__ ((format (printf, 2, 3))); /** @} */ void perror(const char *s); |