Author: David Spickett Date: 2022-07-26T09:12:57Z New Revision: d0479cb29018d9157ef9c90a922ffa09c445aa7d
URL: https://github.com/llvm/llvm-project/commit/d0479cb29018d9157ef9c90a922ffa09c445aa7d DIFF: https://github.com/llvm/llvm-project/commit/d0479cb29018d9157ef9c90a922ffa09c445aa7d.diff LOG: [lldb][ARM] Use portable printf tokens for 64 bit types Fixes some warnings in the 32 bit build. Added: Modified: lldb/source/Plugins/Instruction/ARM/EmulationStateARM.cpp Removed: ################################################################################ diff --git a/lldb/source/Plugins/Instruction/ARM/EmulationStateARM.cpp b/lldb/source/Plugins/Instruction/ARM/EmulationStateARM.cpp index f10064798244..da679a3e8547 100644 --- a/lldb/source/Plugins/Instruction/ARM/EmulationStateARM.cpp +++ b/lldb/source/Plugins/Instruction/ARM/EmulationStateARM.cpp @@ -274,7 +274,8 @@ bool EmulationStateARM::CompareState(EmulationStateARM &other_state, for (int i = 0; match && i < 16; ++i) { if (m_vfp_regs.d_regs[i] != other_state.m_vfp_regs.d_regs[i]) { match = false; - out_stream->Printf("d%d: 0x%lx != 0x%lx\n", i + 16, m_vfp_regs.d_regs[i], + out_stream->Printf("d%d: 0x%" PRIx64 " != 0x%" PRIx64 "\n", i + 16, + m_vfp_regs.d_regs[i], other_state.m_vfp_regs.d_regs[i]); } } @@ -285,10 +286,10 @@ bool EmulationStateARM::CompareState(EmulationStateARM &other_state, out_stream->Printf("memory does not match\n"); out_stream->Printf("got memory:\n"); for (auto p : m_memory) - out_stream->Printf("0x%08lx: 0x%08x\n", p.first, p.second); + out_stream->Printf("0x%08" PRIx64 ": 0x%08x\n", p.first, p.second); out_stream->Printf("expected memory:\n"); for (auto p : other_state.m_memory) - out_stream->Printf("0x%08lx: 0x%08x\n", p.first, p.second); + out_stream->Printf("0x%08" PRIx64 ": 0x%08x\n", p.first, p.second); } return match; _______________________________________________ lldb-commits mailing list lldb-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits