Skip to content

Commit

Permalink
Fix incorrect format string in INetLog::FlushLog.
Browse files Browse the repository at this point in the history
  • Loading branch information
Pavel Kovalenko committed Oct 8, 2014
1 parent 9f4d101 commit e8d6c17
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/xrNetServer/NET_Log.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -89,9 +89,9 @@ void INetLog::FlushLog()
{
SLogPacket* pLPacket = &(*it);
if (pLPacket->m_u16Type >= sizeof(PacketName)/sizeof(PacketName[0]))
fprintf(m_pLogFile, "%s %10d %10d %10d\n", pLPacket->m_bIsIn ? "In:" : "Out:", pLPacket->m_u32Time, pLPacket->m_u16Type, pLPacket->m_u32Size);
fprintf(m_pLogFile, "%s %10u %10u %10u\n", pLPacket->m_bIsIn ? "In:" : "Out:", pLPacket->m_u32Time, pLPacket->m_u16Type, pLPacket->m_u32Size);
else
fprintf(m_pLogFile, "%s %10d %10s %10d\n", pLPacket->m_bIsIn ? "In:" : "Out:", pLPacket->m_u32Time, PacketName[pLPacket->m_u16Type], pLPacket->m_u32Size);
fprintf(m_pLogFile, "%s %10u %10s %10u\n", pLPacket->m_bIsIn ? "In:" : "Out:", pLPacket->m_u32Time, PacketName[pLPacket->m_u16Type], pLPacket->m_u32Size);
};
};

Expand Down

0 comments on commit e8d6c17

Please sign in to comment.