From 7477abe7f36f9e3109272591ae7a34beff04012d Mon Sep 17 00:00:00 2001 From: Takeshi MUTOH Date: Sun, 12 Feb 2017 06:19:13 +0900 Subject: [PATCH] Retern to legacy implement for expr(1) etc. --- src/libc/stdio/doprnt.c | 15 ++------------- 1 file changed, 2 insertions(+), 13 deletions(-) diff --git a/src/libc/stdio/doprnt.c b/src/libc/stdio/doprnt.c index b1885bb..4dddea2 100644 --- a/src/libc/stdio/doprnt.c +++ b/src/libc/stdio/doprnt.c @@ -171,19 +171,8 @@ reswitch: switch (c = *fmt++) { break; case 'D': - s = va_arg (ap, const unsigned char*); - if (! width) - width = 16; - if (sharpflag) - padding = ':'; - while (width--) { - c = *s++; - PUTC (mkhex (c >> 4)); - PUTC (mkhex (c)); - if (width) - PUTC (padding); - } - break; + lflag=1; + /* FALLTHROUGH */ case 'd': case 'i':