mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-07-12 01:38:37 +12:00
Formatting fixes, ToBE() replaced with data()
This commit is contained in:
parent
f4c712dafc
commit
1c4e89d2bf
32 changed files with 166 additions and 158 deletions
|
@ -67,7 +67,7 @@ const std::string Ehdr_OS_ABIToString(const u8 os_abi)
|
|||
case 0x66: return "Cell OS LV-2";
|
||||
};
|
||||
|
||||
return fmt::Format("Unknown (%x)", os_abi);
|
||||
return fmt::Format("Unknown (0x%x)", os_abi);
|
||||
}
|
||||
|
||||
const std::string Ehdr_MachineToString(const u16 machine)
|
||||
|
@ -80,7 +80,7 @@ const std::string Ehdr_MachineToString(const u16 machine)
|
|||
case MACHINE_ARM: return "ARM";
|
||||
};
|
||||
|
||||
return fmt::Format("Unknown (%x)", machine);
|
||||
return fmt::Format("Unknown (0x%x)", machine);
|
||||
}
|
||||
|
||||
const std::string Phdr_FlagsToString(u32 flags)
|
||||
|
@ -105,7 +105,7 @@ const std::string Phdr_FlagsToString(u32 flags)
|
|||
flags &= ~spu << 0x14;
|
||||
flags &= ~rsx << 0x18;
|
||||
|
||||
if(flags != 0) return fmt::Format("Unknown %s PPU[%x] SPU[%x] RSX[%x]", ret.c_str(), ppu, spu, rsx);
|
||||
if(flags != 0) return fmt::Format("Unknown %s PPU[0x%x] SPU[0x%x] RSX[0x%x]", ret.c_str(), ppu, spu, rsx);
|
||||
|
||||
ret += "PPU[" + FLAGS_TO_STRING(ppu) + "] ";
|
||||
ret += "SPU[" + FLAGS_TO_STRING(spu) + "] ";
|
||||
|
@ -125,5 +125,5 @@ const std::string Phdr_TypeToString(const u32 type)
|
|||
case 0x60000002: return "LOOS+2";
|
||||
};
|
||||
|
||||
return fmt::Format("Unknown (%x)", type);
|
||||
return fmt::Format("Unknown (0x%x)", type);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue