diff options
Diffstat (limited to 'common/printf.c')
-rw-r--r-- | common/printf.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/common/printf.c b/common/printf.c index af393daa0b..d6b0298034 100644 --- a/common/printf.c +++ b/common/printf.c @@ -163,9 +163,9 @@ int vfnprintf(int (*addchar)(void *context, int c), void *context, if (digit < 10) *(--vstr) = '0' + digit; else if (c == 'X') - *(--vstr) = 'A' + digit - 9; + *(--vstr) = 'A' + digit - 10; else - *(--vstr) = 'a' + digit - 9; + *(--vstr) = 'a' + digit - 10; } if (is_negative) |