Fix format string use.
This commit is contained in:
parent
e4c0f6ad28
commit
616728154a
2
external/bsd/elftosb/dist/common/Logging.cpp
vendored
2
external/bsd/elftosb/dist/common/Logging.cpp
vendored
@ -86,6 +86,6 @@ void Log::log(Logger::log_level_t level, const std::string & msg)
|
||||
|
||||
void StdoutLogger::_log(const char * msg)
|
||||
{
|
||||
printf(msg);
|
||||
printf("%s", msg);
|
||||
}
|
||||
|
||||
|
@ -1201,7 +1201,7 @@ void SectionMatchListASTNode::printTree(int indent) const
|
||||
}
|
||||
|
||||
printIndent(indent+1);
|
||||
printf("source: ", m_source->c_str());
|
||||
printf("source: ");
|
||||
if (m_source)
|
||||
{
|
||||
printf("%s\n", m_source->c_str());
|
||||
@ -1283,7 +1283,7 @@ void SymbolASTNode::printTree(int indent) const
|
||||
printf("%s(", nodeName().c_str());
|
||||
if (source)
|
||||
{
|
||||
printf(source);
|
||||
printf("%s", source);
|
||||
}
|
||||
else
|
||||
{
|
||||
@ -1292,7 +1292,7 @@ void SymbolASTNode::printTree(int indent) const
|
||||
printf(":");
|
||||
if (symbol)
|
||||
{
|
||||
printf(symbol);
|
||||
printf("%s", symbol);
|
||||
}
|
||||
else
|
||||
{
|
||||
|
@ -317,7 +317,7 @@ public:
|
||||
void printUsage(Options & options)
|
||||
{
|
||||
options.usage(std::cout, "files...");
|
||||
printf(k_usageText, k_toolName);
|
||||
printf("%s", k_usageText);
|
||||
}
|
||||
|
||||
/*!
|
||||
|
2
external/bsd/elftosb/dist/keygen/keygen.cpp
vendored
2
external/bsd/elftosb/dist/keygen/keygen.cpp
vendored
@ -177,7 +177,7 @@ public:
|
||||
void printUsage(Options & options)
|
||||
{
|
||||
options.usage(std::cout, "key-files...");
|
||||
printf(k_usageText, k_toolName);
|
||||
printf("%s", k_usageText);
|
||||
}
|
||||
|
||||
/*!
|
||||
|
2
external/bsd/elftosb/dist/sbtool/sbtool.cpp
vendored
2
external/bsd/elftosb/dist/sbtool/sbtool.cpp
vendored
@ -212,7 +212,7 @@ public:
|
||||
void printUsage(Options & options)
|
||||
{
|
||||
options.usage(std::cout, "sb-file");
|
||||
printf(k_usageText, k_toolName);
|
||||
printf("%s", k_usageText);
|
||||
}
|
||||
|
||||
/*!
|
||||
|
Loading…
Reference in New Issue
Block a user