(0.8x) take denis_' suggestion for improving the peer debug message

This commit is contained in:
Charles Kerr 2007-09-09 00:45:08 +00:00
parent 7a4669a371
commit b0505157a4
1 changed files with 1 additions and 1 deletions

View File

@ -270,7 +270,7 @@ static void __peer_dbg( tr_peer_t * peer, char * msg, ... )
va_start( args, msg );
snprintf( string, sizeof string, "%08x:%04x ",
(uint32_t) peer->addr.s_addr, peer->port );
(uint32_t) ntohl(peer->addr.s_addr), tr_peerPort(peer) );
vsnprintf( &string[14], sizeof( string ) - 14, msg, args );
va_end( args );