:: commit b1bbcc4698b30bf58e92e21bf2ccfe698efa4f0a

mintsuki <mintsuki@protonmail.com> — 2021-12-09 22:47

parents: 59f66809f3

elf: Use right print format for panic

diff --git a/stage23/lib/elf.c b/stage23/lib/elf.c
index de76d1e2..196fe18f 100644
--- a/stage23/lib/elf.c
+++ b/stage23/lib/elf.c
@@ -560,7 +560,7 @@ final:
             ((higher_half == true && this_top > 0x80000000)
           || !memmap_alloc_range((size_t)mem_base, (size_t)mem_size, alloc_type, true, false, simulation, false))) {
             if (++try_count == max_simulated_tries || simulation == false) {
-                panic("elf: Failed to allocate necessary memory range (%p-%p)", mem_base, mem_base + mem_size);
+                panic("elf: Failed to allocate necessary memory range (%X-%X)", mem_base, mem_base + mem_size);
             }
             if (!kaslr) {
                 slide += max_align;
tab: 248 wrap: offon