[lldb][SymbolFileDWARF] Fix format specifier when logging FindDefinitionTypeForDWARFD...
authorMichael Buch <michaelbuch12@gmail.com>
Wed, 17 May 2023 12:38:05 +0000 (13:38 +0100)
committerMichael Buch <michaelbuch12@gmail.com>
Wed, 17 May 2023 12:40:21 +0000 (13:40 +0100)
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<std::__1::__wrap_iter<char *> >')
```

lldb/source/Plugins/SymbolFile/DWARF/SymbolFileDWARF.cpp

index 5780dbe..a71849b 100644 (file)
@@ -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());
     }