mirror of
https://github.com/WinampDesktop/winamp.git
synced 2025-06-17 01:15:47 -04:00
Fix possible log formatting errors.
This commit is contained in:
@ -141,7 +141,7 @@ bool CDImageCueSheet::OpenAndParse(const char* filename)
|
||||
file_size /= track_sector_size;
|
||||
if (track_start >= file_size)
|
||||
{
|
||||
Log_ErrorPrintf("Failed to open track %u in '%s': track start is out of range (%u vs %u)", track_num, filename,
|
||||
Log_ErrorPrintf("Failed to open track %u in '%s': track start is out of range (%ld vs %ld)", track_num, filename,
|
||||
track_start, file_size);
|
||||
return false;
|
||||
}
|
||||
|
@ -159,7 +159,7 @@ bool Program::GetBinary(std::vector<u8>* out_data, u32* out_data_format)
|
||||
}
|
||||
else if (static_cast<size_t>(binary_size) != out_data->size())
|
||||
{
|
||||
Log_WarningPrintf("Size changed from %zu to %d after glGetProgramBinary()", out_data->data(), binary_size);
|
||||
Log_WarningPrintf("Size changed from %zu to %d after glGetProgramBinary()", out_data->size(), binary_size);
|
||||
out_data->resize(static_cast<size_t>(binary_size));
|
||||
}
|
||||
|
||||
@ -618,4 +618,4 @@ Program& Program::operator=(Program&& prog)
|
||||
return *this;
|
||||
}
|
||||
|
||||
} // namespace GL
|
||||
} // namespace GL
|
||||
|
@ -85,7 +85,7 @@ void WAVWriter::WriteFrames(const s16* samples, u32 num_frames)
|
||||
const u32 num_frames_written =
|
||||
static_cast<u32>(std::fwrite(samples, sizeof(s16) * m_num_channels, num_frames, m_file));
|
||||
if (num_frames_written != num_frames)
|
||||
Log_ErrorPrintf("Only wrote %u of %u frames to output file", num_frames_written);
|
||||
Log_ErrorPrintf("Only wrote %u of %u frames to output file", num_frames_written, num_frames);
|
||||
|
||||
m_num_frames += num_frames_written;
|
||||
}
|
||||
@ -112,4 +112,4 @@ bool WAVWriter::WriteHeader()
|
||||
return (std::fwrite(&header, sizeof(header), 1, m_file) == 1);
|
||||
}
|
||||
|
||||
} // namespace Common
|
||||
} // namespace Common
|
||||
|
Reference in New Issue
Block a user