summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/stdio/__printf.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/stdio/__printf.c b/src/stdio/__printf.c
index b500a75b..e86f91ee 100644
--- a/src/stdio/__printf.c
+++ b/src/stdio/__printf.c
@@ -397,6 +397,9 @@ int (__printf)(struct io_options *opt, const char * format, va_list arg)
break;
case '%': /* literal '%' */
+ if (specified != 0) {
+ __undefined("In call to %s(): \"%%%%\" conversion is not literally \"%%%%\"", opt->fnname);
+ }
if (nout < (int)n) {
s[nout] = '%';
}