From 000a0f2a7138d5947bfcb3b5b13549be3c34e7a6 Mon Sep 17 00:00:00 2001 From: Ruslan Ermilov Date: Thu, 2 Nov 2006 17:52:43 +0000 Subject: [PATCH] Unbreak compile with ELF_VERBOSE defined, and fix format warnings. --- sys/boot/common/load_elf.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/sys/boot/common/load_elf.c b/sys/boot/common/load_elf.c index cd983a982db..bb070fd9cf0 100644 --- a/sys/boot/common/load_elf.c +++ b/sys/boot/common/load_elf.c @@ -32,6 +32,7 @@ __FBSDID("$FreeBSD$"); #include #include #include +#include #include #include #include @@ -400,9 +401,9 @@ __elfN(loadimage)(struct preloaded_file *fp, elf_file_t ef, u_int64_t off) lastaddr += sizeof(size); #ifdef ELF_VERBOSE - printf("\n%s: 0x%lx@0x%lx -> 0x%lx-0x%lx", secname, - shdr[i].sh_size, shdr[i].sh_offset, - lastaddr, lastaddr + shdr[i].sh_size); + printf("\n%s: 0x%jx@0x%jx -> 0x%jx-0x%jx", secname, + (uintmax_t)shdr[i].sh_size, (uintmax_t)shdr[i].sh_offset, + (uintmax_t)lastaddr, (uintmax_t)(lastaddr + shdr[i].sh_size)); #else if (i == symstrindex) printf("+"); -- 2.45.2