diff options
author | Greg Clayton <gclayton@apple.com> | 2012-04-26 17:07:53 +0000 |
---|---|---|
committer | Greg Clayton <gclayton@apple.com> | 2012-04-26 17:07:53 +0000 |
commit | f22f6ff32a84428af61167e609f2f16dadeaa7dc (patch) | |
tree | 5059874e02b06f1e05534daeaff7fb4660471754 /lldb/source/lldb-log.cpp | |
parent | 9efa076aa66dce7a218322dd6d73def942cbe100 (diff) | |
download | bcm5719-llvm-f22f6ff32a84428af61167e609f2f16dadeaa7dc.tar.gz bcm5719-llvm-f22f6ff32a84428af61167e609f2f16dadeaa7dc.zip |
Patch from Filipe Cabecinhas.
llvm-svn: 155639
Diffstat (limited to 'lldb/source/lldb-log.cpp')
-rw-r--r-- | lldb/source/lldb-log.cpp | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/lldb/source/lldb-log.cpp b/lldb/source/lldb-log.cpp index 4080bd8303b..5510631b8d3 100644 --- a/lldb/source/lldb-log.cpp +++ b/lldb/source/lldb-log.cpp @@ -174,7 +174,6 @@ lldb_private::EnableLog (StreamSP &log_stream_sp, uint32_t log_options, const ch 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 @@ lldb_private::EnableLog (StreamSP &log_stream_sp, uint32_t log_options, const ch 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; } } |