From: Rich Felker Date: Sat, 13 Jun 2015 04:37:27 +0000 (+0000) Subject: add %m support to wide printf X-Git-Tag: v1.1.11~47 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=f9e25d813860d53cd1e9b6145cc63375d2fe2529;p=oweals%2Fmusl.git add %m support to wide printf --- diff --git a/src/stdio/vfwprintf.c b/src/stdio/vfwprintf.c index ebdff001..281f4e56 100644 --- a/src/stdio/vfwprintf.c +++ b/src/stdio/vfwprintf.c @@ -293,6 +293,8 @@ static int wprintf_core(FILE *f, const wchar_t *fmt, va_list *ap, union arg *nl_ if ((fl&LEFT_ADJ)) fprintf(f, "%.*s", w-p, ""); l=w; continue; + case 'm': + arg.p = strerror(errno); case 's': bs = arg.p; if (p<0) p = INT_MAX;