SI_DeviceGBA: Amend printf formatting specifier for size_t

%zu is the correct specifier for printing size_t.
This commit is contained in:
Lioncash 2017-03-13 15:28:04 -04:00
parent 8d2078de2d
commit deda29d7ff
1 changed files with 2 additions and 2 deletions

View File

@ -302,13 +302,13 @@ int GBASockServer::Receive(u8* si_buffer)
#ifdef _DEBUG
if ((u8)m_send_data[0] == 0x00 || (u8)m_send_data[0] == 0xff)
{
WARN_LOG(SERIALINTERFACE, "%01d [< %02x%02x%02x%02x%02x] (%lu)",
WARN_LOG(SERIALINTERFACE, "%01d [< %02x%02x%02x%02x%02x] (%zu)",
m_device_number, (u8)m_recv_data[0], (u8)m_recv_data[1], (u8)m_recv_data[2],
(u8)m_recv_data[3], (u8)m_recv_data[4], num_received);
}
else
{
ERROR_LOG(SERIALINTERFACE, "%01d [< %02x%02x%02x%02x%02x] (%lu)",
ERROR_LOG(SERIALINTERFACE, "%01d [< %02x%02x%02x%02x%02x] (%zu)",
m_device_number, (u8)m_recv_data[0], (u8)m_recv_data[1], (u8)m_recv_data[2],
(u8)m_recv_data[3], (u8)m_recv_data[4], num_received);
}