Fixed sending string to FormatLine

varargs does not support type String.
This commit is contained in:
Chris Teubert
2015-05-20 10:18:13 -07:00
parent be8f92eaa2
commit 2889f4e3ce
3 changed files with 9 additions and 9 deletions

View File

@@ -121,7 +121,7 @@ namespace XPC
{
Log::WriteLine(LOG_DEBUG, "DBUG", ss.str());
std::string dref((char*)buffer + 6, buffer[5]);
Log::FormatLine(LOG_DEBUG, "DBUG", " DREF (size %i) = %s", dref.length(), dref);
Log::FormatLine(LOG_DEBUG, "DBUG", " DREF (size %i) = %s", dref.length(), dref.c_str());
ss.str("");
int values = buffer[6 + buffer[5]];
ss << " Values(size " << values << ") =";
@@ -140,7 +140,7 @@ namespace XPC
{
std::string dref((char*)buffer + cur + 1, buffer[cur]);
Log::FormatLine(LOG_DEBUG, "DBUG", " #%i/%i (size:%i) %s",
i + 1, buffer[5], dref.length(), dref);
i + 1, buffer[5], dref.length(), dref.c_str());
cur += 1 + buffer[cur];
}
break;