From: Michael Buch Date: Wed, 17 May 2023 12:38:05 +0000 (+0100) Subject: [lldb][SymbolFileDWARF] Fix format specifier when logging FindDefinitionTypeForDWARFD... X-Git-Tag: upstream/17.0.6~8162 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=eb5a3e247aa2ec4f0089e6518fc815915ab24228;p=platform%2Fupstream%2Fllvm.git [lldb][SymbolFileDWARF] Fix format specifier when logging FindDefinitionTypeForDWARFDeclContext Before: ``` (arm64) /Users/michaelbuch/Git/lldb-build-main-modules/module.cache/295JG6LDUQX5Z/Clang_AST-39AVV87GST1ON.pcm: SymbolFileDWARF::FindDefinitionTypeForDWARFDeclContext(tag=%s, name='DW_TAG_class_type') ``` After: ``` (arm64) /Users/michaelbuch/Git/lldb-build-main-modules/module.cache/295JG6LDUQX5Z/std-XGBT2D5Y2D6X.pcm: SymbolFileDWARF::FindDefinitionTypeForDWARFDeclContext(tag=DW_TAG_class_type, name='reverse_iterator >') ``` --- diff --git a/lldb/source/Plugins/SymbolFile/DWARF/SymbolFileDWARF.cpp b/lldb/source/Plugins/SymbolFile/DWARF/SymbolFileDWARF.cpp index 5780dbea..a71849b 100644 --- a/lldb/source/Plugins/SymbolFile/DWARF/SymbolFileDWARF.cpp +++ b/lldb/source/Plugins/SymbolFile/DWARF/SymbolFileDWARF.cpp @@ -2962,8 +2962,8 @@ SymbolFileDWARF::FindDefinitionTypeForDWARFDeclContext(const DWARFDIE &die) { if (log) { GetObjectFile()->GetModule()->LogMessage( log, - "SymbolFileDWARF::FindDefinitionTypeForDWARFDeclContext(tag=%" - "s, name='{0}')", + "SymbolFileDWARF::FindDefinitionTypeForDWARFDeclContext(tag={0}, " + "name='{1}')", DW_TAG_value_to_name(tag), die.GetName()); }