diff options
author | nyan <nyan@FreeBSD.org> | 2000-04-14 14:25:13 +0000 |
---|---|---|
committer | nyan <nyan@FreeBSD.org> | 2000-04-14 14:25:13 +0000 |
commit | 41a5f6cba7a556fa7edc5c8af99e8589df682e9f (patch) | |
tree | 75cfb6d7ae42b3051d8a055cc9903aae31353cdf /sys/boot/pc98 | |
parent | 241fa1a8d5556d7cad735f229feb4ae87e33ab42 (diff) | |
download | FreeBSD-src-41a5f6cba7a556fa7edc5c8af99e8589df682e9f.zip FreeBSD-src-41a5f6cba7a556fa7edc5c8af99e8589df682e9f.tar.gz |
The printf function of boot2 can't recognize "%lx" format.
Submitted by: Nobuyuki Koganemaru <kogane@koganemaru.co.jp>
Diffstat (limited to 'sys/boot/pc98')
-rw-r--r-- | sys/boot/pc98/boot2/boot.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sys/boot/pc98/boot2/boot.c b/sys/boot/pc98/boot2/boot.c index 9aad557..d95e2c8 100644 --- a/sys/boot/pc98/boot2/boot.c +++ b/sys/boot/pc98/boot2/boot.c @@ -258,7 +258,7 @@ loadprog(void) printf("Start address too low\n"); return; } - printf("text=0x%lx ", head.a_text); + printf("text=0x%x ", head.a_text); /********************************************************/ /* LOAD THE TEXT SEGMENT */ /********************************************************/ @@ -271,7 +271,7 @@ loadprog(void) while (addr & PAGE_MASK) *(char *)addr++ = 0; - printf("data=0x%lx ", head.a_data); + printf("data=0x%x ", head.a_data); xread((void *)addr, head.a_data); addr += head.a_data; @@ -279,7 +279,7 @@ loadprog(void) /* Skip over the uninitialised data */ /* (but clear it) */ /********************************************************/ - printf("bss=0x%lx ", head.a_bss); + printf("bss=0x%x ", head.a_bss); /* * XXX however, we should be checking that we don't load ... into @@ -306,7 +306,7 @@ loadprog(void) /********************************************************/ /* Load the symbol table */ /********************************************************/ - printf("symbols=[+0x%x+0x%x+0x%lx", pad, sizeof(head.a_syms), + printf("symbols=[+0x%x+0x%x+0x%x", pad, sizeof(head.a_syms), head.a_syms); xread((void *)addr, head.a_syms); addr += head.a_syms; |