diff --git a/src/stdio/vfprintf.c b/src/stdio/vfprintf.c index 33019ff1..c3bd4d31 100644 --- a/src/stdio/vfprintf.c +++ b/src/stdio/vfprintf.c @@ -10,6 +10,7 @@ #include #include #include +#include "atomic.h" /* Some useful macros */ @@ -652,8 +653,7 @@ static int printf_core(FILE *f, const char *fmt, va_list *ap, union arg *nl_arg, return 1; inval: - errno = EINVAL; - return -1; + a_crash(); overflow: errno = EOVERFLOW; return -1;