One more fix for Printf. Apparently I fail at incremental builds.

llvm-svn: 287016
This commit is contained in:
Zachary Turner 2016-11-15 20:11:01 +00:00
parent 12c53897f3
commit 32b1c7f7f1
1 changed files with 2 additions and 2 deletions

View File

@ -76,13 +76,13 @@ bool CommandObjectSyntax::DoExecute(Args &command,
if (all_okay && (cmd_obj != nullptr)) {
Stream &output_strm = result.GetOutputStream();
if (cmd_obj->GetOptions() != nullptr) {
output_strm.Printf("\nSyntax: %s\n", cmd_obj->GetSyntax());
output_strm.Printf("\nSyntax: %s\n", cmd_obj->GetSyntax().str().c_str());
output_strm.Printf(
"(Try 'help %s' for more information on command options syntax.)\n",
cmd_obj->GetCommandName().str().c_str());
result.SetStatus(eReturnStatusSuccessFinishNoResult);
} else {
output_strm.Printf("\nSyntax: %s\n", cmd_obj->GetSyntax());
output_strm.Printf("\nSyntax: %s\n", cmd_obj->GetSyntax().str().c_str());
result.SetStatus(eReturnStatusSuccessFinishNoResult);
}
} else {