summaryrefslogtreecommitdiffstats
path: root/sys/boot
diff options
context:
space:
mode:
authorru <ru@FreeBSD.org>2006-11-02 17:52:43 +0000
committerru <ru@FreeBSD.org>2006-11-02 17:52:43 +0000
commit369ac0052b416a6ccd4646d821e5e9f47da763dd (patch)
tree36eb10ffa1502fb3f6e906615cf41f051dc447cb /sys/boot
parent429c8e9145f0770e3a0312e2c26c2f004816e89c (diff)
downloadFreeBSD-src-369ac0052b416a6ccd4646d821e5e9f47da763dd.zip
FreeBSD-src-369ac0052b416a6ccd4646d821e5e9f47da763dd.tar.gz
Unbreak compile with ELF_VERBOSE defined, and fix format warnings.
Diffstat (limited to 'sys/boot')
-rw-r--r--sys/boot/common/load_elf.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/sys/boot/common/load_elf.c b/sys/boot/common/load_elf.c
index cd983a9..bb070fd 100644
--- a/sys/boot/common/load_elf.c
+++ b/sys/boot/common/load_elf.c
@@ -32,6 +32,7 @@ __FBSDID("$FreeBSD$");
#include <sys/exec.h>
#include <sys/linker.h>
#include <sys/module.h>
+#include <sys/stdint.h>
#include <string.h>
#include <machine/elf.h>
#include <stand.h>
@@ -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("+");
OpenPOWER on IntegriCloud