From a8483b9b30385807790882b3b770fa6d016a0aa4 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Martin=20Storsj=C3=B6?= Date: Wed, 15 Feb 2023 10:42:20 +0200 Subject: [PATCH] [lldb] Fix a log format warning on Windows, don't assume uint64_t is a long type On Windows, long is 32 bit, and uint64_t is long long. Differential Revision: https://reviews.llvm.org/D144078 --- lldb/source/Plugins/Instruction/RISCV/EmulateInstructionRISCV.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lldb/source/Plugins/Instruction/RISCV/EmulateInstructionRISCV.cpp b/lldb/source/Plugins/Instruction/RISCV/EmulateInstructionRISCV.cpp index 06772aa..414e53f 100644 --- a/lldb/source/Plugins/Instruction/RISCV/EmulateInstructionRISCV.cpp +++ b/lldb/source/Plugins/Instruction/RISCV/EmulateInstructionRISCV.cpp @@ -636,7 +636,7 @@ std::optional EmulateInstructionRISCV::Decode(uint32_t inst) { if ((inst & pat.type_mask) == pat.eigen && (inst_type & pat.inst_type) != 0) { LLDB_LOGF( - log, "EmulateInstructionRISCV::%s: inst(%x at %lx) was decoded to %s", + 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