[JITLink][AArch32] Remove duplicate '0x' hex prefixes from formatv strings in error messages

This commit is contained in:
Stefan Gränitz 2023-09-13 17:48:41 +02:00
parent 1025189ea0
commit 21ee9e4b26

View File

@ -194,7 +194,7 @@ struct ArmRelocation {
Error makeUnexpectedOpcodeError(const LinkGraph &G, const ThumbRelocation &R,
Edge::Kind Kind) {
return make_error<JITLinkError>(
formatv("Invalid opcode [ 0x{0:x4}, 0x{1:x4} ] for relocation: {2}",
formatv("Invalid opcode [ {0:x4}, {1:x4} ] for relocation: {2}",
static_cast<uint16_t>(R.Hi), static_cast<uint16_t>(R.Lo),
G.getEdgeKindName(Kind)));
}
@ -202,7 +202,7 @@ Error makeUnexpectedOpcodeError(const LinkGraph &G, const ThumbRelocation &R,
Error makeUnexpectedOpcodeError(const LinkGraph &G, const ArmRelocation &R,
Edge::Kind Kind) {
return make_error<JITLinkError>(
formatv("Invalid opcode [ 0x{0:x8} ] for relocation: {1}",
formatv("Invalid opcode {0:x8} for relocation: {1}",
static_cast<uint32_t>(R.Wd), G.getEdgeKindName(Kind)));
}