aboutsummaryrefslogtreecommitdiff
path: root/lldb/source/Commands/CommandObjectMultiword.cpp
diff options
context:
space:
mode:
authorZachary Turner <zturner@google.com>2016-11-14 23:23:31 +0000
committerZachary Turner <zturner@google.com>2016-11-14 23:23:31 +0000
commit03c9f3642af61f089977ab7a683ad5a2405c67f8 (patch)
tree143924a99bb9e8f275bdd03dd58734abf1155c40 /lldb/source/Commands/CommandObjectMultiword.cpp
parent3cb86272fc4c2c42cce63a978879a4299a8c7bd5 (diff)
downloadllvm-03c9f3642af61f089977ab7a683ad5a2405c67f8.zip
llvm-03c9f3642af61f089977ab7a683ad5a2405c67f8.tar.gz
llvm-03c9f3642af61f089977ab7a683ad5a2405c67f8.tar.bz2
Fix some StringRef Printf warnings.
llvm-svn: 286906
Diffstat (limited to 'lldb/source/Commands/CommandObjectMultiword.cpp')
-rw-r--r--lldb/source/Commands/CommandObjectMultiword.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lldb/source/Commands/CommandObjectMultiword.cpp b/lldb/source/Commands/CommandObjectMultiword.cpp
index bcc0229..d31bba4 100644
--- a/lldb/source/Commands/CommandObjectMultiword.cpp
+++ b/lldb/source/Commands/CommandObjectMultiword.cpp
@@ -257,7 +257,7 @@ void CommandObjectMultiword::AproposAllSubCommands(llvm::StringRef prefix,
CommandObject *sub_cmd_obj = pos->second.get();
StreamString complete_command_name;
- complete_command_name.Printf("%s %s", prefix, command_name);
+ complete_command_name << prefix << " " << command_name;
if (sub_cmd_obj->HelpTextContainsWord(search_word)) {
commands_found.AppendString(complete_command_name.GetData());