From fd466889b49dfe528567587183c2aedd27836f27 Mon Sep 17 00:00:00 2001 From: Jakob Kaivo Date: Fri, 7 Jun 2024 14:50:18 -0400 Subject: split formatted I/O header, unify undefined behavior reporting with UNDEFINED_FMT() macro --- src/stdio/__printf.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/stdio/__printf.c') diff --git a/src/stdio/__printf.c b/src/stdio/__printf.c index d0672d14..3471db74 100644 --- a/src/stdio/__printf.c +++ b/src/stdio/__printf.c @@ -10,7 +10,7 @@ #endif #include "_forced/strdup.h" -#include "_stdio.h" +#include "_format.h" #define NUMBUFLEN 64 @@ -129,6 +129,7 @@ int __printf(struct io_options *opt, const char * format, va_list arg) struct io_conversion conv = { .func = opt->fnname, .dir = IO_OUT, + .fmt = format, }; int base = 10; -- cgit v1.2.1