aboutsummaryrefslogtreecommitdiff
path: root/stand/common/load_elf.c
diff options
context:
space:
mode:
Diffstat (limited to 'stand/common/load_elf.c')
-rw-r--r--stand/common/load_elf.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/stand/common/load_elf.c b/stand/common/load_elf.c
index fbbd1fdd54ea..b47dd25b4a8f 100644
--- a/stand/common/load_elf.c
+++ b/stand/common/load_elf.c
@@ -483,7 +483,7 @@ __elfN(loadimage)(struct preloaded_file *fp, elf_file_t ef, uint64_t off)
off += 0x01000000;
ehdr->e_entry += off;
#ifdef ELF_VERBOSE
- printf("Converted entry 0x%08x\n", ehdr->e_entry);
+ printf("Converted entry 0x%jx\n", (uintmax_t)ehdr->e_entry);
#endif
} else
off = 0;
@@ -509,8 +509,8 @@ __elfN(loadimage)(struct preloaded_file *fp, elf_file_t ef, uint64_t off)
off -= ehdr->e_entry & ~PAGE_MASK;
ehdr->e_entry += off;
#ifdef ELF_VERBOSE
- printf("ehdr->e_entry 0x%08x, va<->pa off %llx\n",
- ehdr->e_entry, off);
+ printf("ehdr->e_entry 0x%jx", va<->pa off %llx\n",
+ (uintmax_t)ehdr->e_entry, off);
#endif
#else
off = 0; /* other archs use direct mapped kernels */