SI_DeviceGBA: Amend printf formatting specifier for size_t
%zu is the correct specifier for printing size_t.
This commit is contained in:
parent
8d2078de2d
commit
deda29d7ff
|
@ -302,13 +302,13 @@ int GBASockServer::Receive(u8* si_buffer)
|
||||||
#ifdef _DEBUG
|
#ifdef _DEBUG
|
||||||
if ((u8)m_send_data[0] == 0x00 || (u8)m_send_data[0] == 0xff)
|
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],
|
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);
|
(u8)m_recv_data[3], (u8)m_recv_data[4], num_received);
|
||||||
}
|
}
|
||||||
else
|
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],
|
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);
|
(u8)m_recv_data[3], (u8)m_recv_data[4], num_received);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue