From 3e878aeba9dff3971d46f7f9f90bf3114beb4702 Mon Sep 17 00:00:00 2001 From: Charles Kerr Date: Sat, 13 Oct 2007 14:02:10 +0000 Subject: [PATCH] tweak the debugging messages a bit. --- gtk/main.c | 2 +- libtransmission/peer-mgr.c | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/gtk/main.c b/gtk/main.c index e5627e692..e0c26850d 100644 --- a/gtk/main.c +++ b/gtk/main.c @@ -795,7 +795,7 @@ about ( void ) gtk_about_dialog_set_wrap_license (a, TRUE); #endif gtk_about_dialog_set_logo_icon_name( a, "transmission-logo" ); - gtk_about_dialog_set_comments( a, _("A fast, easy BitTorrent client") ); + gtk_about_dialog_set_comments( a, _("A fast and easy BitTorrent client") ); gtk_about_dialog_set_website( a, "http://transmission.m0k.org/" ); gtk_about_dialog_set_copyright( a, _("Copyright 2005-2007 The Transmission Project") ); gtk_about_dialog_set_authors( a, authors ); diff --git a/libtransmission/peer-mgr.c b/libtransmission/peer-mgr.c index 2a10a44d9..131f89fa3 100644 --- a/libtransmission/peer-mgr.c +++ b/libtransmission/peer-mgr.c @@ -1497,7 +1497,7 @@ shouldPeerBeClosed( const Torrent * t, const tr_peer * peer, int peerCount ) /* if it's marked for purging, close it */ if( peer->doPurge ) { - tordbg( t, "purging peer %p because its doPurge flag is set", tr_peerIoAddrStr(&atom->addr,atom->port) ); + tordbg( t, "purging peer %s because its doPurge flag is set", tr_peerIoAddrStr(&atom->addr,atom->port) ); return TRUE; } @@ -1506,7 +1506,7 @@ shouldPeerBeClosed( const Torrent * t, const tr_peer * peer, int peerCount ) const int clientIsSeed = tr_cpGetStatus( tor->completion ) != TR_CP_INCOMPLETE; const int peerIsSeed = atom->flags & ADDED_F_SEED_FLAG; if( peerIsSeed && clientIsSeed && ( tor->pexDisabled || (now-atom->time>=30) ) ) { - tordbg( t, "purging peer %p because we're both seeds", tr_peerIoAddrStr(&atom->addr,atom->port) ); + tordbg( t, "purging peer %s because we're both seeds", tr_peerIoAddrStr(&atom->addr,atom->port) ); return TRUE; } } @@ -1526,7 +1526,7 @@ shouldPeerBeClosed( const Torrent * t, const tr_peer * peer, int peerCount ) const time_t then = peer->pieceDataActivityDate; const int idleTime = then ? (now-then) : 0; if( idleTime > limit ) { - tordbg( t, "purging peer %p it's been %d secs since we shared anything", + tordbg( t, "purging peer %s because it's been %d secs since we shared anything", tr_peerIoAddrStr(&atom->addr,atom->port), idleTime ); return TRUE; }