refactor(kernel): comment out printf declarations in <stdio.h> and include <printf.h> instead

Signed-off-by: EnderIce2 <enderice2@protonmail.com>
This commit is contained in:
EnderIce2 2025-03-27 15:56:09 +00:00
parent 36c5c8ad67
commit 0a32c19923
Signed by: enderice2
GPG Key ID: FEB6B8A8507BA62E

View File

@ -37,12 +37,13 @@ extern FILE *stderr;
#define stdout stdout #define stdout stdout
#define stderr stderr #define stderr stderr
int printf(const char *format, ...) __attribute__((format(__printf__, (1), (2)))); #include <printf.h>
int vprintf(const char *format, va_list arg) __attribute__((format(__printf__, ((1)), (0)))); // int printf(const char *format, ...) __attribute__((format(__printf__, (1), (2))));
int sprintf(char *s, const char *format, ...) __attribute__((format(__printf__, (2), (3)))); // int vprintf(const char *format, va_list arg) __attribute__((format(__printf__, ((1)), (0))));
int vsprintf(char *s, const char *format, va_list arg) __attribute__((format(__printf__, ((2)), (0)))); // int sprintf(char *s, const char *format, ...) __attribute__((format(__printf__, (2), (3))));
int snprintf(char *s, size_t count, const char *format, ...) __attribute__((format(__printf__, (3), (4)))); // int vsprintf(char *s, const char *format, va_list arg) __attribute__((format(__printf__, ((2)), (0))));
int vsnprintf(char *s, size_t count, const char *format, va_list arg) __attribute__((format(__printf__, ((3)), (0)))); // int snprintf(char *s, size_t count, const char *format, ...) __attribute__((format(__printf__, (3), (4))));
// int vsnprintf(char *s, size_t count, const char *format, va_list arg) __attribute__((format(__printf__, ((3)), (0))));
int asprintf(char **strp, const char *fmt, ...) __attribute__((format(__printf__, (2), (3)))); int asprintf(char **strp, const char *fmt, ...) __attribute__((format(__printf__, (2), (3))));
int vasprintf(char **strp, const char *fmt, va_list ap) __attribute__((format(__printf__, ((2)), (0)))); int vasprintf(char **strp, const char *fmt, va_list ap) __attribute__((format(__printf__, ((2)), (0))));