[Lldb-commits] [lldb] r286915 - Fix some more StringRef printf warnings.
Zachary Turner via lldb-commits
lldb-commits at lists.llvm.org
Mon Nov 14 16:45:19 PST 2016
Author: zturner
Date: Mon Nov 14 18:45:18 2016
New Revision: 286915
URL: http://llvm.org/viewvc/llvm-project?rev=286915&view=rev
Log:
Fix some more StringRef printf warnings.
Modified:
lldb/trunk/source/Commands/CommandObjectPlatform.cpp
lldb/trunk/source/Commands/CommandObjectThread.cpp
lldb/trunk/source/Interpreter/CommandAlias.cpp
Modified: lldb/trunk/source/Commands/CommandObjectPlatform.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Commands/CommandObjectPlatform.cpp?rev=286915&r1=286914&r2=286915&view=diff
==============================================================================
--- lldb/trunk/source/Commands/CommandObjectPlatform.cpp (original)
+++ lldb/trunk/source/Commands/CommandObjectPlatform.cpp Mon Nov 14 18:45:18 2016
@@ -1746,7 +1746,7 @@ public:
// Print out an usage syntax on an empty command line.
if (raw_command_line[0] == '\0') {
- result.GetOutputStream().Printf("%s\n", this->GetSyntax());
+ result.GetOutputStream().Printf("%s\n", this->GetSyntax().str().c_str());
return true;
}
Modified: lldb/trunk/source/Commands/CommandObjectThread.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Commands/CommandObjectThread.cpp?rev=286915&r1=286914&r2=286915&view=diff
==============================================================================
--- lldb/trunk/source/Commands/CommandObjectThread.cpp (original)
+++ lldb/trunk/source/Commands/CommandObjectThread.cpp Mon Nov 14 18:45:18 2016
@@ -1037,7 +1037,7 @@ protected:
}
} else if (m_options.m_until_addrs.empty()) {
result.AppendErrorWithFormat("No line number or address provided:\n%s",
- GetSyntax());
+ GetSyntax().str().c_str());
result.SetStatus(eReturnStatusFailed);
return false;
}
Modified: lldb/trunk/source/Interpreter/CommandAlias.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Interpreter/CommandAlias.cpp?rev=286915&r1=286914&r2=286915&view=diff
==============================================================================
--- lldb/trunk/source/Interpreter/CommandAlias.cpp (original)
+++ lldb/trunk/source/Interpreter/CommandAlias.cpp Mon Nov 14 18:45:18 2016
@@ -90,7 +90,7 @@ CommandAlias::CommandAlias(CommandInterp
GetAliasExpansion(sstr);
translation_and_help.Printf("(%s) %s", sstr.GetData(),
- GetUnderlyingCommand()->GetHelp());
+ GetUnderlyingCommand()->GetHelp().str().c_str());
SetHelp(translation_and_help.GetData());
}
}
More information about the lldb-commits
mailing list