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=4fa88ad3aaf1a03e4cce8afe47c9215fa788878d;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;