From f1cc7fd3f6640c906451a3fd70fb3f07224fef52 Mon Sep 17 00:00:00 2001 From: georgemoralis Date: Tue, 11 Apr 2023 18:14:24 +0300 Subject: [PATCH] small format fixes --- emulator/Loader/Elf.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/emulator/Loader/Elf.cpp b/emulator/Loader/Elf.cpp index 719b0f88..1bdb5604 100644 --- a/emulator/Loader/Elf.cpp +++ b/emulator/Loader/Elf.cpp @@ -277,10 +277,10 @@ void Elf::DebugDump() { fmt::print(" phoff .........: {:#018x}\n", m_elf_header->e_phoff); fmt::print(" shoff .........: {:#018x}\n", m_elf_header->e_shoff); fmt::print(" flags .........: {:#010x}\n", m_elf_header->e_flags); - fmt::print(" ehsize ........: {:#06x}\n", m_elf_header->e_ehsize); - fmt::print(" phentsize .....: {:#06x}\n", m_elf_header->e_phentsize); + fmt::print(" ehsize ........: {}\n", m_elf_header->e_ehsize); + fmt::print(" phentsize .....: {}\n", m_elf_header->e_phentsize); fmt::print(" phnum .........: {}\n", m_elf_header->e_phnum); - fmt::print(" shentsize .....: {:#06x}\n", m_elf_header->e_shentsize); + fmt::print(" shentsize .....: {}\n", m_elf_header->e_shentsize); fmt::print(" shnum .........: {}\n", m_elf_header->e_shnum); fmt::print(" shstrndx ......: {}\n", m_elf_header->e_shstrndx); @@ -303,9 +303,9 @@ void Elf::DebugDump() { if (m_elf_header->e_shentsize > 0) { fmt::print("Section headers:\n"); - for (uint16_t i = 0; i < m_elf_header->e_shnum; i++) + for (u16 i = 0; i < m_elf_header->e_shnum; i++) { - fmt::print("--- shdr [%d] --\n", i); + fmt::print("--- shdr {} --\n", i); fmt::print("sh_name ........: {}\n", (m_elf_shdr + i)->sh_name); fmt::print("sh_type ........: {:#010x}\n", (m_elf_shdr + i)->sh_type); fmt::print("sh_flags .......: {:#018x}\n", (m_elf_shdr + i)->sh_flags);