:: commit c1f96b53d22236dab40d1d6117be32c644460146

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

parents: ee6c98541b

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