summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorpeter <peter@FreeBSD.org>2000-05-01 18:02:38 +0000
committerpeter <peter@FreeBSD.org>2000-05-01 18:02:38 +0000
commit09c5677a8b4ebeeade5b7425ce1afa148e3584a7 (patch)
treecc10773dabf100db4dc6ad255906e6223ae7382b
parent793c8f6d02d8e9c2fc12e844fc54d91e8d11efee (diff)
downloadFreeBSD-src-09c5677a8b4ebeeade5b7425ce1afa148e3584a7.zip
FreeBSD-src-09c5677a8b4ebeeade5b7425ce1afa148e3584a7.tar.gz
Fix some warnings on the Alpha. sizeof() returns different things on
x86 and Alpha. Sigh.
-rw-r--r--sys/boot/common/load_aout.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/boot/common/load_aout.c b/sys/boot/common/load_aout.c
index 52315f5..c36cfac 100644
--- a/sys/boot/common/load_aout.c
+++ b/sys/boot/common/load_aout.c
@@ -227,7 +227,7 @@ aout_loadimage(struct preloaded_file *fp, int fd, vm_offset_t loadaddr, struct e
addr += sizeof(ehdr->a_syms);
/* symbol table */
- printf("symbols=[0x%x+0x%lx", sizeof(ehdr->a_syms), ehdr->a_syms);
+ printf("symbols=[0x%lx+0x%lx", (long)sizeof(ehdr->a_syms),ehdr->a_syms);
if (archsw.arch_readin(fd, addr, ehdr->a_syms) != ehdr->a_syms)
return(0);
addr += ehdr->a_syms;
@@ -237,7 +237,7 @@ aout_loadimage(struct preloaded_file *fp, int fd, vm_offset_t loadaddr, struct e
archsw.arch_copyin(&ss, addr, sizeof(ss));
addr += sizeof(ss);
ss -= sizeof(ss);
- printf("+0x%x+0x%x]", sizeof(ss), ss);
+ printf("+0x%lx+0x%x]", (long)sizeof(ss), ss);
if (archsw.arch_readin(fd, addr, ss) != ss)
return(0);
addr += ss;
OpenPOWER on IntegriCloud