[Lldb-commits] [lldb] r372696 - [lldb] Fix log output and UtilityTests/LogChannelTest.List

Raphael Isemann via lldb-commits lldb-commits at lists.llvm.org
Tue Sep 24 01:20:05 PDT 2019


Author: teemperor
Date: Tue Sep 24 01:20:05 2019
New Revision: 372696

URL: http://llvm.org/viewvc/llvm-project?rev=372696&view=rev
Log:
[lldb] Fix log output and UtilityTests/LogChannelTest.List

I refactored this code in 372691 and it seems I didn't fully
replicate the original log output, so that test was failing.

Modified:
    lldb/trunk/source/Utility/Log.cpp

Modified: lldb/trunk/source/Utility/Log.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Utility/Log.cpp?rev=372696&r1=372695&r2=372696&view=diff
==============================================================================
--- lldb/trunk/source/Utility/Log.cpp (original)
+++ lldb/trunk/source/Utility/Log.cpp Tue Sep 24 01:20:05 2019
@@ -48,6 +48,7 @@ void Log::ForEachCategory(
 
 void Log::ListCategories(llvm::raw_ostream &stream,
                          const ChannelMap::value_type &entry) {
+  stream << llvm::formatv("Logging categories for '{0}':\n", entry.first());
   ForEachCategory(entry,
                   [&stream](llvm::StringRef name, llvm::StringRef description) {
                     stream << llvm::formatv("  {0} - {1}\n", name, description);




More information about the lldb-commits mailing list