Core/Common: Fix a std::string -> char* -> std::string conversion

* Thanks jackpoz for noticing

(cherry picked from commit 2698d1ff48)
This commit is contained in:
Naios
2016-04-23 17:57:48 +02:00
parent 4f9352d773
commit 53f44fbffa

View File

@@ -78,7 +78,7 @@ static int CreateChildProcess(T waiter, std::string const& executable,
if (!secure)
{
TC_LOG_TRACE(logger.c_str(), "Starting process \"%s\" with arguments: \"%s\".",
TC_LOG_TRACE(logger, "Starting process \"%s\" with arguments: \"%s\".",
executable.c_str(), boost::algorithm::join(args, " ").c_str());
}
@@ -111,12 +111,12 @@ static int CreateChildProcess(T waiter, std::string const& executable,
auto outInfo = MakeTCLogSink([&](std::string msg)
{
TC_LOG_INFO(logger.c_str(), "%s", msg.c_str());
TC_LOG_INFO(logger, "%s", msg.c_str());
});
auto outError = MakeTCLogSink([&](std::string msg)
{
TC_LOG_ERROR(logger.c_str(), "%s", msg.c_str());
TC_LOG_ERROR(logger, "%s", msg.c_str());
});
copy(outFd, outInfo);
@@ -128,7 +128,7 @@ static int CreateChildProcess(T waiter, std::string const& executable,
if (!secure)
{
TC_LOG_TRACE(logger.c_str(), ">> Process \"%s\" finished with return value %i.",
TC_LOG_TRACE(logger, ">> Process \"%s\" finished with return value %i.",
executable.c_str(), result);
}