summaryrefslogtreecommitdiff
path: root/src/stdio/__printf.c
diff options
context:
space:
mode:
authorJakob Kaivo <jkk@ung.org>2024-06-07 14:50:18 -0400
committerJakob Kaivo <jkk@ung.org>2024-06-07 14:50:18 -0400
commitfd466889b49dfe528567587183c2aedd27836f27 (patch)
tree02802cd3785b46a627530427d0e8774742754a7a /src/stdio/__printf.c
parentc195cb021ead7de765a0b37f5ab793802be46731 (diff)
split formatted I/O header, unify undefined behavior reporting with UNDEFINED_FMT() macro
Diffstat (limited to 'src/stdio/__printf.c')
-rw-r--r--src/stdio/__printf.c3
1 files changed, 2 insertions, 1 deletions
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;