diff options
Diffstat (limited to 'arch/x86')
-rw-r--r-- | arch/x86/boot/boot.h | 1 | ||||
-rw-r--r-- | arch/x86/boot/printf.c | 2 |
2 files changed, 2 insertions, 1 deletions
diff --git a/arch/x86/boot/boot.h b/arch/x86/boot/boot.h index 5b7531966b84..ef72baeff484 100644 --- a/arch/x86/boot/boot.h +++ b/arch/x86/boot/boot.h | |||
@@ -355,6 +355,7 @@ int strncmp(const char *cs, const char *ct, size_t count); | |||
355 | size_t strnlen(const char *s, size_t maxlen); | 355 | size_t strnlen(const char *s, size_t maxlen); |
356 | unsigned int atou(const char *s); | 356 | unsigned int atou(const char *s); |
357 | unsigned long long simple_strtoull(const char *cp, char **endp, unsigned int base); | 357 | unsigned long long simple_strtoull(const char *cp, char **endp, unsigned int base); |
358 | size_t strlen(const char *s); | ||
358 | 359 | ||
359 | /* tty.c */ | 360 | /* tty.c */ |
360 | void puts(const char *); | 361 | void puts(const char *); |
diff --git a/arch/x86/boot/printf.c b/arch/x86/boot/printf.c index cdac91ca55d3..565083c16e5c 100644 --- a/arch/x86/boot/printf.c +++ b/arch/x86/boot/printf.c | |||
@@ -55,7 +55,7 @@ static char *number(char *str, long num, int base, int size, int precision, | |||
55 | locase = (type & SMALL); | 55 | locase = (type & SMALL); |
56 | if (type & LEFT) | 56 | if (type & LEFT) |
57 | type &= ~ZEROPAD; | 57 | type &= ~ZEROPAD; |
58 | if (base < 2 || base > 36) | 58 | if (base < 2 || base > 16) |
59 | return NULL; | 59 | return NULL; |
60 | c = (type & ZEROPAD) ? '0' : ' '; | 60 | c = (type & ZEROPAD) ? '0' : ' '; |
61 | sign = 0; | 61 | sign = 0; |