From 87eae1e3c8ce2700e3279e6df612034afa828c9e Mon Sep 17 00:00:00 2001 From: Augustin Cavalier Date: Tue, 17 Dec 2024 19:48:28 -0500 Subject: [PATCH] bootloader: Properly enable __PRINTFLIKE for the boot stdio. No new warnings or errors, it appears. --- headers/private/kernel/boot/stdio.h | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/headers/private/kernel/boot/stdio.h b/headers/private/kernel/boot/stdio.h index c4bee0c0f6..9e67da78d1 100644 --- a/headers/private/kernel/boot/stdio.h +++ b/headers/private/kernel/boot/stdio.h @@ -36,13 +36,11 @@ extern FILE *stderr; # define EOF (-1) #endif -#define __PRINTFLIKE(a, b) - -extern int printf(char const *format, ...) __PRINTFLIKE(1,2); -extern int fprintf(FILE *stream, char const *format, ...) __PRINTFLIKE(2,3); -extern int sprintf(char *str, char const *format, ...) __PRINTFLIKE(2,3); -extern int snprintf(char *str, size_t size, char const *format, ...) __PRINTFLIKE(3,4); -extern int asprintf(char **ret, char const *format, ...) __PRINTFLIKE(2,3); +extern int printf(char const *format, ...) _PRINTFLIKE(1,2); +extern int fprintf(FILE *stream, char const *format, ...) _PRINTFLIKE(2,3); +extern int sprintf(char *str, char const *format, ...) _PRINTFLIKE(2,3); +extern int snprintf(char *str, size_t size, char const *format, ...) _PRINTFLIKE(3,4); +extern int asprintf(char **ret, char const *format, ...) _PRINTFLIKE(2,3); extern int vprintf(char const *format, va_list ap); extern int vfprintf(FILE *stream, char const *format, va_list ap); extern int vsprintf(char *str, char const *format, va_list ap);