diff options
Diffstat (limited to 'lib')
-rw-r--r-- | lib/printf.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/printf.c b/lib/printf.c index 64fcf728..a668aeaf 100644 --- a/lib/printf.c +++ b/lib/printf.c @@ -198,6 +198,9 @@ int bvsnprintf(char *buf, int size, const char *fmt, va_list args) case 'm': s = strerror(errno); goto str; + case 'M': + s = strerror(va_arg(args, int)); + goto str; case 's': s = va_arg(args, char *); if (!s) |