Skip to content

Commit b6cf94e

Browse files
committed
Fix format specifier warning in EmulateInstructionRISCV more
Yes, the portable macro is still the only way to do this.
1 parent 095ce65 commit b6cf94e

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

lldb/source/Plugins/Instruction/RISCV/EmulateInstructionRISCV.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -504,7 +504,9 @@ llvm::Optional<DecodeResult> EmulateInstructionRISCV::Decode(uint32_t inst) {
504504

505505
for (const InstrPattern &pat : PATTERNS) {
506506
if ((inst & pat.type_mask) == pat.eigen) {
507-
LLDB_LOGF(log, "EmulateInstructionRISCV::%s: inst(%x at %llx) was decoded to %s",
507+
LLDB_LOGF(log,
508+
"EmulateInstructionRISCV::%s: inst(%x at %" PRIx64
509+
") was decoded to %s",
508510
__FUNCTION__, inst, m_addr, pat.name);
509511
auto decoded = is_rvc ? pat.decode(try_rvc) : pat.decode(inst);
510512
return DecodeResult{decoded, inst, is_rvc, pat};

0 commit comments

Comments
 (0)