From b6cf94e973f9659086633ca56dc51bc74d4125eb Mon Sep 17 00:00:00 2001 From: Benjamin Kramer Date: Fri, 4 Nov 2022 18:58:43 +0100 Subject: [PATCH] Fix format specifier warning in EmulateInstructionRISCV more Yes, the portable macro is still the only way to do this. --- lldb/source/Plugins/Instruction/RISCV/EmulateInstructionRISCV.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lldb/source/Plugins/Instruction/RISCV/EmulateInstructionRISCV.cpp b/lldb/source/Plugins/Instruction/RISCV/EmulateInstructionRISCV.cpp index 7b2f8c8..c05b43f 100644 --- a/lldb/source/Plugins/Instruction/RISCV/EmulateInstructionRISCV.cpp +++ b/lldb/source/Plugins/Instruction/RISCV/EmulateInstructionRISCV.cpp @@ -504,7 +504,9 @@ llvm::Optional EmulateInstructionRISCV::Decode(uint32_t inst) { for (const InstrPattern &pat : PATTERNS) { if ((inst & pat.type_mask) == pat.eigen) { - LLDB_LOGF(log, "EmulateInstructionRISCV::%s: inst(%x at %llx) was decoded to %s", + LLDB_LOGF(log, + "EmulateInstructionRISCV::%s: inst(%x at %" PRIx64 + ") was decoded to %s", __FUNCTION__, inst, m_addr, pat.name); auto decoded = is_rvc ? pat.decode(try_rvc) : pat.decode(inst); return DecodeResult{decoded, inst, is_rvc, pat}; -- 2.7.4