[lldb] Fix typo in integral format specifier
authorMichael Buch <michaelbuch12@gmail.com>
Thu, 12 Jan 2023 12:06:03 +0000 (12:06 +0000)
committerMichael Buch <michaelbuch12@gmail.com>
Thu, 12 Jan 2023 12:09:04 +0000 (12:09 +0000)
This regressed with `e262b8f48af9fdca8380f2f079e50291956aad71`.

Two issues here:
1. `:16x` is not a valid format specifier and
   we would crash when we encountered this log
   (which was the case in `TestCPPAccelerator.py`)
2. The third argument was missing curly braces so
   the log message itself was malformed.

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

index 162013f..9f042e9 100644 (file)
@@ -430,7 +430,7 @@ TypeSP DWARFASTParserClang::ParseTypeFromDWARF(const SymbolContext &sc,
         log,
         "DWARFASTParserClang::ParseTypeFromDWARF "
         "(die = {0:x16}, decl_ctx = {1:p} (die "
-        "{2:16x})) (3:s) name = '{4}')",
+        "{2:x16})) {3} name = '{4}')",
         die.GetOffset(), static_cast<void *>(context), context_die.GetOffset(),
         die.GetTagAsCString(), die.GetName());
   }