Skip to content

Commit

Permalink
[lldb] Fix format specifier warning in EmulateInstructionRISCV
Browse files Browse the repository at this point in the history
Fixes warning: format specifies type 'unsigned long' but the argument
has type 'lldb::addr_t' (aka 'unsigned long long') [-Wformat]
  • Loading branch information
JDevlieghere committed Nov 4, 2022
1 parent 589764a commit 234e08e
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -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};
Expand Down

0 comments on commit 234e08e

Please sign in to comment.