Patch from Filipe Cabecinhas.
git-svn-id: https://llvm.org/svn/llvm-project/lldb/trunk@155639 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/source/lldb-log.cpp b/source/lldb-log.cpp
index 4080bd8..5510631 100644
--- a/source/lldb-log.cpp
+++ b/source/lldb-log.cpp
@@ -174,7 +174,6 @@
if (log)
{
- bool got_unknown_category = false;
for (size_t i=0; categories[i] != NULL; ++i)
{
const char *arg = categories[i];
@@ -205,12 +204,8 @@
else
{
feedback_strm->Printf("error: unrecognized log category '%s'\n", arg);
- if (got_unknown_category == false)
- {
- got_unknown_category = true;
- ListLogCategories (feedback_strm);
- return log;
- }
+ ListLogCategories (feedback_strm);
+ return log;
}
}