diff options
author | Jonas Devlieghere <jonas@devlieghere.com> | 2022-11-04 20:46:21 +0300 |
---|---|---|
committer | Jonas Devlieghere <jonas@devlieghere.com> | 2022-11-04 20:46:31 +0300 |
commit | 234e08ec3c1a94bf67ee78c25d1c5241cc69aaa5 (patch) | |
tree | 4d80530394de88beda36cb024f1e324f46f485da /lldb | |
parent | 589764a382642ae8374cfe21a6b10f839c8596da (diff) |
[lldb] Fix format specifier warning in EmulateInstructionRISCV
Fixes warning: format specifies type 'unsigned long' but the argument
has type 'lldb::addr_t' (aka 'unsigned long long') [-Wformat]
Diffstat (limited to 'lldb')
-rw-r--r-- | lldb/source/Plugins/Instruction/RISCV/EmulateInstructionRISCV.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lldb/source/Plugins/Instruction/RISCV/EmulateInstructionRISCV.cpp b/lldb/source/Plugins/Instruction/RISCV/EmulateInstructionRISCV.cpp index 1d8f3a275027..7b2f8c81e44b 100644 --- a/lldb/source/Plugins/Instruction/RISCV/EmulateInstructionRISCV.cpp +++ b/lldb/source/Plugins/Instruction/RISCV/EmulateInstructionRISCV.cpp @@ -504,7 +504,7 @@ 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 %lx) was decoded to %s", + LLDB_LOGF(log, "EmulateInstructionRISCV::%s: inst(%x at %llx) 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}; |