Fix string formatting warnings.

This commit is contained in:
C.W. Betts 2021-03-29 13:59:22 -06:00
parent fb7a8886f1
commit e4735bcf7a
2 changed files with 3 additions and 3 deletions

View file

@ -61,7 +61,7 @@ bool CDImageMemory::CopyImage(CDImage* image, ProgressCallback* progress)
static_cast<u8*>(std::malloc(static_cast<size_t>(RAW_SECTOR_SIZE) * static_cast<size_t>(m_memory_sectors)));
if (!m_memory)
{
progress->DisplayFormattedModalError("Failed to allocate memory for %llu sectors", m_memory_sectors);
progress->DisplayFormattedModalError("Failed to allocate memory for %u sectors", m_memory_sectors);
return false;
}

View file

@ -101,7 +101,7 @@ bool HostInterface::BootSystem(const SystemBootParameters& parameters)
if (!AcquireHostDisplay())
{
ReportFormattedError(g_host_interface->TranslateString("System", "Failed to acquire host display."));
ReportError(g_host_interface->TranslateString("System", "Failed to acquire host display."));
OnSystemDestroyed();
return false;
}
@ -118,7 +118,7 @@ bool HostInterface::BootSystem(const SystemBootParameters& parameters)
{
if (!System::IsStartupCancelled())
{
ReportFormattedError(
ReportError(
g_host_interface->TranslateString("System", "System failed to boot. The log may contain more information."));
}