X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Flib%2Fstdio.c;h=4b0ba1967f2698bbce124fd4cad9bfb3ac17ff95;hb=75efee76500d95f53adf73e178b4a9872d93f131;hp=034374d7aa9011b836890529523e372a64afebdf;hpb=28c37d8b3b308e6a979439b3961c248b8449e0d0;p=pintos-anon diff --git a/src/lib/stdio.c b/src/lib/stdio.c index 034374d..4b0ba19 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; @@ -556,9 +562,10 @@ __printf (const char *format, } /* Dumps the SIZE bytes in BUF to the console as hex bytes - arranged 16 per line, plus offsets listed starting at OFS for - the first byte in BU. If ASCII is true then the corresponding - ASCII characters are also rendered alongside. */ + arranged 16 per line. Numeric offsets are also included, + starting at OFS for the first byte in BUF. If ASCII is true + then the corresponding ASCII characters are also rendered + alongside. */ void hex_dump (uintptr_t ofs, const void *buf_, size_t size, bool ascii) {