Skip to content

Commit

Permalink
Fixed a debug log message in N_SendDataBufferReliably which was tryin…
Browse files Browse the repository at this point in the history
…g to print a size_t directly as an unsigned long without a cast.
  • Loading branch information
danij committed Nov 3, 2008
1 parent 0916c8f commit 07d4456
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions doomsday/engine/portable/src/sys_network.c
Expand Up @@ -511,8 +511,8 @@ void N_SendDataBufferReliably(void *data, size_t size, nodeid_t destination)

result = SDLNet_TCP_Send(node->sock, transmissionBuffer, (int) size + 2);
#ifdef _DEBUG
VERBOSE2( Con_Message("N_SendDataBufferReliably: Sent %ul bytes, result=%i\n",
size + 2, result) );
VERBOSE2( Con_Message("N_SendDataBufferReliably: Sent %ul bytes, result=%ul\n",
(unsigned long) (size + 2), result) );
#endif
if(result != size + 2)
perror("Socket error");
Expand Down Expand Up @@ -1632,10 +1632,10 @@ void N_Listen(void)
{
/** \fixme Read into a buffer, execute when newline
* received.
*
*
* Process the command; we will need to answer, or
* do something else.
*/
*/
N_DoNodeCommand(i, buf, result);
}
}
Expand Down

0 comments on commit 07d4456

Please sign in to comment.