From: Ben Pfaff Date: Tue, 21 Sep 2004 04:45:34 +0000 (+0000) Subject: Implement (u)intmax_t in printf(). X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6301eb9d1a0f13837020ac1f718943553e1eecfe;p=pintos-anon Implement (u)intmax_t in printf(). (How'd I forget that?) --- diff --git a/src/lib/stdio.c b/src/lib/stdio.c index 034374d..13df2c7 100644 --- a/src/lib/stdio.c +++ b/src/lib/stdio.c @@ -200,6 +200,9 @@ __vprintf (const char *format, va_list args, case INT: value = va_arg (args, int); break; + case INTMAX: + value = va_arg (args, intmax_t); + break; case LONG: value = va_arg (args, long); break; @@ -241,6 +244,9 @@ __vprintf (const char *format, va_list args, case INT: value = va_arg (args, unsigned); break; + case INTMAX: + value = va_arg (args, uintmax_t); + break; case LONG: value = va_arg (args, unsigned long); break;