forked from OSchip/llvm-project
[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:
parent
0fcb3afb40
commit
8126340b3f
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue