From 74c5b19492d955e9b0123075962d33ed74629070 Mon Sep 17 00:00:00 2001 From: Richard Nyberg Date: Sat, 8 Oct 2005 14:32:09 +0000 Subject: [PATCH] Logging. --- btpd/peer.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/btpd/peer.c b/btpd/peer.c index deb1af3..bce0497 100644 --- a/btpd/peer.c +++ b/btpd/peer.c @@ -311,9 +311,7 @@ peer_on_shake(struct peer *p) for (i = 0; i < 20 && isprint(p->id[i]); i++) printid[i] = p->id[i]; printid[i] = '\0'; - btpd_log(BTPD_L_MSG, "received shake with id=\'%s\', from %p.\n", - printid, p); - btpd_log(BTPD_L_MSG, "received shake from %p.\n", p); + btpd_log(BTPD_L_MSG, "received shake(%s) from %p\n", printid, p); p->piece_field = btpd_calloc(1, (int)ceil(p->tp->meta.npieces / 8.0)); if (p->tp->have_npieces > 0) { if (p->tp->have_npieces * 9 < 5 + ceil(p->tp->meta.npieces / 8.0))