Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/llvm/llvm-project.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/lldb
diff options
context:
space:
mode:
authorBenjamin Kramer <benny.kra@googlemail.com>2022-11-04 20:58:43 +0300
committerBenjamin Kramer <benny.kra@googlemail.com>2022-11-04 20:58:43 +0300
commitb6cf94e973f9659086633ca56dc51bc74d4125eb (patch)
tree6cc9bb6f74b14559c0b0d0ab93ee0a4efe9ed71b /lldb
parent095ce655ec84fc21b6002808c698687c37f2bf12 (diff)
Fix format specifier warning in EmulateInstructionRISCV more
Yes, the portable macro is still the only way to do this.
Diffstat (limited to 'lldb')
-rw-r--r--lldb/source/Plugins/Instruction/RISCV/EmulateInstructionRISCV.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/lldb/source/Plugins/Instruction/RISCV/EmulateInstructionRISCV.cpp b/lldb/source/Plugins/Instruction/RISCV/EmulateInstructionRISCV.cpp
index 7b2f8c81e44b..c05b43f300fd 100644
--- a/lldb/source/Plugins/Instruction/RISCV/EmulateInstructionRISCV.cpp
+++ b/lldb/source/Plugins/Instruction/RISCV/EmulateInstructionRISCV.cpp
@@ -504,7 +504,9 @@ llvm::Optional<DecodeResult> 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};