From: Ben Pfaff Date: Sun, 5 Sep 2004 08:12:37 +0000 (+0000) Subject: Fix some new printf bugs. X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=bd7b9ef5b7b306554f7bc4782a161e4856b34053;p=pintos-anon Fix some new printf bugs. --- diff --git a/src/lib/lib.c b/src/lib/lib.c index 46f7f26..f353d62 100644 --- a/src/lib/lib.c +++ b/src/lib/lib.c @@ -469,8 +469,8 @@ struct integer_base static const struct integer_base base_d = {10, "0123456789", "", 3}; static const struct integer_base base_o = {8, "01234567", "0", 3}; -static const struct integer_base base_x = {16, "0123456789acbdef", "", 4}; -static const struct integer_base base_X = {16, "0123456789ABCDEF", "", 4}; +static const struct integer_base base_x = {16, "0123456789abcdef", "0x", 4}; +static const struct integer_base base_X = {16, "0123456789ABCDEF", "0x", 4}; static const char *parse_conversion (const char *format, struct printf_conversion *,