[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.

llvm-svn: 372696
This commit is contained in:
Raphael Isemann 2019-09-24 08:20:05 +00:00
parent 0fcb3afb40
commit 8126340b3f
1 changed files with 1 additions and 0 deletions

View File

@ -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);