Fix warnings found by StringFromFormat having printf style checking.
This commit is contained in:
parent
09cc7e2ddf
commit
70d2592ffb
|
@ -113,7 +113,7 @@ std::string Timer::GetTimeElapsedFormatted() const
|
||||||
// Hours
|
// Hours
|
||||||
u32 Hours = Minutes / 60;
|
u32 Hours = Minutes / 60;
|
||||||
|
|
||||||
std::string TmpStr = StringFromFormat("%02i:%02i:%02i:%03i",
|
std::string TmpStr = StringFromFormat("%02i:%02i:%02i:%03lu",
|
||||||
Hours, Minutes % 60, Seconds % 60, Milliseconds % 1000);
|
Hours, Minutes % 60, Seconds % 60, Milliseconds % 1000);
|
||||||
return TmpStr;
|
return TmpStr;
|
||||||
}
|
}
|
||||||
|
|
|
@ -469,7 +469,7 @@ std::string GetScheduledEventsSummary()
|
||||||
if (!name)
|
if (!name)
|
||||||
name = "[unknown]";
|
name = "[unknown]";
|
||||||
|
|
||||||
text += StringFromFormat("%s : %i %08x%08x\n", name, ptr->time, ptr->userdata >> 32, ptr->userdata);
|
text += StringFromFormat("%s : %li %08lx%08lx\n", name, ptr->time, ptr->userdata >> 32, ptr->userdata);
|
||||||
ptr = ptr->next;
|
ptr = ptr->next;
|
||||||
}
|
}
|
||||||
return text;
|
return text;
|
||||||
|
|
|
@ -155,7 +155,7 @@ void GetStringVA(std::string& _rOutBuffer, u32 strReg)
|
||||||
|
|
||||||
case 'p':
|
case 'p':
|
||||||
// Override, so 64bit dolphin prints 32bit pointers, since the ppc is 32bit :)
|
// Override, so 64bit dolphin prints 32bit pointers, since the ppc is 32bit :)
|
||||||
_rOutBuffer += StringFromFormat("%x", Parameter);
|
_rOutBuffer += StringFromFormat("%x", (u32)Parameter);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
default:
|
default:
|
||||||
|
|
|
@ -231,7 +231,7 @@ void LogCompiledInstructions()
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifdef OPLOG
|
#ifdef OPLOG
|
||||||
f.Open(StringFromFormat("%s" OP_TO_LOG "_at.txt", File::GetUserPath(D_LOGS_IDX).c_str(), time), "w");
|
f.Open(StringFromFormat("%s" OP_TO_LOG "_at%i.txt", File::GetUserPath(D_LOGS_IDX).c_str(), time), "w");
|
||||||
for (auto& rsplocation : rsplocations)
|
for (auto& rsplocation : rsplocations)
|
||||||
{
|
{
|
||||||
fprintf(f.GetHandle(), OP_TO_LOG ": %08x\n", rsplocation);
|
fprintf(f.GetHandle(), OP_TO_LOG ": %08x\n", rsplocation);
|
||||||
|
|
Loading…
Reference in New Issue