ldrumm added a subscriber: lldb-commits. ldrumm updated this revision to Diff 44000. ldrumm added a comment.
Addresses @clayborg's feedback in http://reviews.llvm.org/D15773 http://reviews.llvm.org/D15773 Files: source/Core/StringList.cpp Index: source/Core/StringList.cpp =================================================================== --- source/Core/StringList.cpp +++ source/Core/StringList.cpp @@ -12,6 +12,7 @@ #include "lldb/Core/StreamString.h" #include "lldb/Host/FileSpec.h" #include "lldb/Core/Log.h" +#include "lldb/Core/StreamString.h" #include <string> @@ -362,10 +363,16 @@ { if (!log) return; + + StreamString strm; if (name) - log->Debug("Begin %s:", name); - for (const auto &s : m_strings) - log->Debug("\t%s", s.c_str()); + strm.Printf("Begin %s:\n", name); + for (const auto &s : m_strings) { + strm.Indent(); + strm.Printf("%s\n", s.c_str()); + } if (name) - log->Debug("End %s.", name); + strm.Printf("End %s.\n", name); + + log->Debug("%s", strm.GetData()); }
Index: source/Core/StringList.cpp =================================================================== --- source/Core/StringList.cpp +++ source/Core/StringList.cpp @@ -12,6 +12,7 @@ #include "lldb/Core/StreamString.h" #include "lldb/Host/FileSpec.h" #include "lldb/Core/Log.h" +#include "lldb/Core/StreamString.h" #include <string> @@ -362,10 +363,16 @@ { if (!log) return; + + StreamString strm; if (name) - log->Debug("Begin %s:", name); - for (const auto &s : m_strings) - log->Debug("\t%s", s.c_str()); + strm.Printf("Begin %s:\n", name); + for (const auto &s : m_strings) { + strm.Indent(); + strm.Printf("%s\n", s.c_str()); + } if (name) - log->Debug("End %s.", name); + strm.Printf("End %s.\n", name); + + log->Debug("%s", strm.GetData()); }
_______________________________________________ lldb-commits mailing list lldb-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits