Author: Jie Fu Date: 2023-02-23T07:28:38+08:00 New Revision: 42ecceb76bfad21acc589cae0f25110f28006c3a
URL: https://github.com/llvm/llvm-project/commit/42ecceb76bfad21acc589cae0f25110f28006c3a DIFF: https://github.com/llvm/llvm-project/commit/42ecceb76bfad21acc589cae0f25110f28006c3a.diff LOG: [lldb] Fix -Wformat in DWARFDebugAranges.cpp (NFC) /data/llvm-project/lldb/source/Plugins/SymbolFile/DWARF/DWARFDebugAranges.cpp:79:66: error: format specifies type 'unsigned int' but the argument has type 'lldb_private::RangeData<unsigned long, unsigned int, unsigned long>::DataType' (aka 'unsigned long') [-Werror,-Wformat] LLDB_LOGF(log, "0x%8.8x: [0x%" PRIx64 " - 0x%" PRIx64 ")", entry->data, ~~~~~ ^~~~~~~~~~~ %8.8lx /data/llvm-project/lldb/include/lldb/Utility/Log.h:348:27: note: expanded from macro 'LLDB_LOGF' log_private->Printf(__VA_ARGS__); \ ^~~~~~~~~~~ 1 error generated. Added: Modified: lldb/source/Plugins/SymbolFile/DWARF/DWARFDebugAranges.cpp Removed: ################################################################################ diff --git a/lldb/source/Plugins/SymbolFile/DWARF/DWARFDebugAranges.cpp b/lldb/source/Plugins/SymbolFile/DWARF/DWARFDebugAranges.cpp index a37499175858..c52caab3e735 100644 --- a/lldb/source/Plugins/SymbolFile/DWARF/DWARFDebugAranges.cpp +++ b/lldb/source/Plugins/SymbolFile/DWARF/DWARFDebugAranges.cpp @@ -76,7 +76,7 @@ void DWARFDebugAranges::Dump(Log *log) const { for (size_t i = 0; i < num_entries; ++i) { const RangeToDIE::Entry *entry = m_aranges.GetEntryAtIndex(i); if (entry) - LLDB_LOGF(log, "0x%8.8x: [0x%" PRIx64 " - 0x%" PRIx64 ")", entry->data, + LLDB_LOGF(log, "0x%8.8lx: [0x%" PRIx64 " - 0x%" PRIx64 ")", entry->data, entry->GetRangeBase(), entry->GetRangeEnd()); } } _______________________________________________ lldb-commits mailing list lldb-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits