diff options
Diffstat (limited to 'lldb/source/Interpreter/CommandReturnObject.cpp')
| -rw-r--r-- | lldb/source/Interpreter/CommandReturnObject.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lldb/source/Interpreter/CommandReturnObject.cpp b/lldb/source/Interpreter/CommandReturnObject.cpp index 53f3bd2d8d6..72e66aa082e 100644 --- a/lldb/source/Interpreter/CommandReturnObject.cpp +++ b/lldb/source/Interpreter/CommandReturnObject.cpp @@ -69,7 +69,7 @@ void CommandReturnObject::AppendMessageWithFormat(const char *format, ...) { sstrm.PrintfVarArg(format, args); va_end(args); - GetOutputStream().Printf("%s", sstrm.GetData()); + GetOutputStream() << sstrm.GetString(); } void CommandReturnObject::AppendWarningWithFormat(const char *format, ...) { @@ -81,7 +81,7 @@ void CommandReturnObject::AppendWarningWithFormat(const char *format, ...) { sstrm.PrintfVarArg(format, args); va_end(args); - GetErrorStream().Printf("warning: %s", sstrm.GetData()); + GetErrorStream() << "warning: " << sstrm.GetString(); } void CommandReturnObject::AppendMessage(llvm::StringRef in_string) { |

