diff options
author | David <dbphillipsnz@gmail.com> | 2013-11-11 21:48:59 +1300 |
---|---|---|
committer | David <dbphillipsnz@gmail.com> | 2014-03-27 20:32:48 +1300 |
commit | f5bbf7cf9bd1eff316fd5b2d2ed71abbb49a7ecd (patch) | |
tree | f9af4cbe30519be76851e5114c14d6a958a07263 | |
parent | b707eed2ccab33aa5c008a84d4a74788b4b2e52d (diff) | |
download | toast-f5bbf7cf9bd1eff316fd5b2d2ed71abbb49a7ecd.tar.xz |
Fixed console_print()/printf() issue
-rw-r--r-- | kernel.c | 2 | ||||
-rw-r--r-- | screen/console.c | 2 |
2 files changed, 2 insertions, 2 deletions
@@ -52,7 +52,7 @@ void kernel_main(multiboot_info_t *mbd, unsigned int magic) console_print("%s: 0x%x to 0x%x = %d bytes\n", mmap->type == 1? "AVAILABLE" : "RESERVED ", mmap->addr, - mmap->addr+mmap->len-1, + mmap->addr + mmap->len-1, mmap->len ); } diff --git a/screen/console.c b/screen/console.c index 00e9ebb..da5cf9a 100644 --- a/screen/console.c +++ b/screen/console.c @@ -174,7 +174,7 @@ void console_print(const char* format, ...) console_print_char(va_arg(strings, uint64_t)); break; case 'd': - console_print_num(va_arg(strings, uint64_t),10); + console_print_num(va_arg(strings, uint32_t),10); break; case 'x': console_print_num(va_arg(strings, uint64_t),16); |