medfall

A super great game engine
Log | Files | Refs

commit 958cbad84828c223f319d7875863b0996f3922f7
parent a50176e11961fa4bf627a97ed64d2ff0a58016be
Author: Michael Savage <mikejsavage@gmail.com>
Date:   Sun Jun 25 14:34:32 +0300

Fix printf warning

Diffstat:
server/main.cc | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/server/main.cc b/server/main.cc @@ -149,7 +149,7 @@ int main() { if( !r.ok ) continue; u64 new_sid = rng_next_u64( &rng ); - printf( "new connection %08lx\n", new_sid ); + ggprint( "new connection {08x}\n", new_sid ); PlayerState * state = states.acquire(); ASSERT( state ); @@ -190,7 +190,7 @@ int main() { PlayerState * state = &states.elems[ i ]; write( &w, state->sid ); if( state->last_message_time + DISCONNECT_TIMEOUT <= now ) { - printf( "%08lx disconnected\n", state->sid ); + ggprint( "{08x} disconnected\n", state->sid ); write_u8( &w, 1 ); states.release( state ); i--;