mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-19 14:38:18 +00:00
Fix incorrect format strings
This commit is contained in:
parent
d75d4535ae
commit
de344ba221
|
@ -1811,8 +1811,8 @@ bool CClient::LimitFps()
|
|||
(Now - DbgLastSkippedDbgMsg) / (double)time_freq() > 5.0)
|
||||
{
|
||||
char aBuf[128];
|
||||
str_format(aBuf, sizeof(aBuf), "LimitFps: FramesSkippedCount=%d TimeWaited=%.3f (per sec)",
|
||||
DbgFramesSkippedCount/5,
|
||||
str_format(aBuf, sizeof(aBuf), "LimitFps: FramesSkippedCount=%lu TimeWaited=%.3f (per sec)",
|
||||
(unsigned long)(DbgFramesSkippedCount/5),
|
||||
DbgTimeWaited/5.0);
|
||||
m_pConsole->Print(IConsole::OUTPUT_LEVEL_DEBUG, "client", aBuf);
|
||||
DbgFramesSkippedCount = 0;
|
||||
|
|
|
@ -260,7 +260,7 @@ void *CDataFileReader::GetDataImpl(int Index, int Swap)
|
|||
unsigned long UncompressedSize = m_pDataFile->m_Info.m_pDataSizes[Index];
|
||||
unsigned long s;
|
||||
|
||||
dbg_msg("datafile", "loading data index=%d size=%d uncompressed=%d", Index, DataSize, UncompressedSize);
|
||||
dbg_msg("datafile", "loading data index=%d size=%d uncompressed=%lu", Index, DataSize, UncompressedSize);
|
||||
m_pDataFile->m_ppDataPtrs[Index] = (char *)mem_alloc(UncompressedSize, 1);
|
||||
|
||||
// read the compressed data
|
||||
|
@ -544,7 +544,7 @@ int CDataFileWriter::Finish()
|
|||
for(int i = 0; i < m_NumItems; i++)
|
||||
{
|
||||
if(DEBUG)
|
||||
dbg_msg("datafile", "item=%d size=%d (%d)", i, m_pItems[i].m_Size, m_pItems[i].m_Size+sizeof(CDatafileItem));
|
||||
dbg_msg("datafile", "item=%d size=%d (%d)", i, m_pItems[i].m_Size, (int)(m_pItems[i].m_Size+sizeof(CDatafileItem)));
|
||||
ItemSize += m_pItems[i].m_Size + sizeof(CDatafileItem);
|
||||
}
|
||||
|
||||
|
@ -581,7 +581,7 @@ int CDataFileWriter::Finish()
|
|||
|
||||
// write Header
|
||||
if(DEBUG)
|
||||
dbg_msg("datafile", "HeaderSize=%d", sizeof(Header));
|
||||
dbg_msg("datafile", "HeaderSize=%d", (int)sizeof(Header));
|
||||
#if defined(CONF_ARCH_ENDIAN_BIG)
|
||||
swap_endian(&Header, sizeof(int), sizeof(Header)/sizeof(int));
|
||||
#endif
|
||||
|
|
|
@ -77,7 +77,7 @@ public:
|
|||
{
|
||||
if(FindInterfaceInfo(pName) == 0)
|
||||
{
|
||||
dbg_msg("kernel", "ERROR: couldn't reregister interface '%s'. interface doesn't exist");
|
||||
dbg_msg("kernel", "ERROR: couldn't reregister interface '%s'. interface doesn't exist", pName);
|
||||
return false;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue