Skip to content

Commit 234e08e

Browse files
committed
[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]
1 parent 589764a commit 234e08e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -504,7 +504,7 @@ 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 %lx) was decoded to %s",
507+
LLDB_LOGF(log, "EmulateInstructionRISCV::%s: inst(%x at %llx) was decoded to %s",
508508
__FUNCTION__, inst, m_addr, pat.name);
509509
auto decoded = is_rvc ? pat.decode(try_rvc) : pat.decode(inst);
510510
return DecodeResult{decoded, inst, is_rvc, pat};

0 commit comments

Comments
 (0)