about summary refs log tree commit diff
diff options
context:
space:
mode:
authorRichard Nyberg <rnyberg@murmeldjur.se>2006-02-10 21:05:52 +0000
committerRichard Nyberg <rnyberg@murmeldjur.se>2006-02-10 21:05:52 +0000
commit88aa2eeb632db763d33e4ac5b27f4bedadfa5168 (patch)
tree8c4d7aa60599b650621d6ad9b48ead04e5b86db3
parentc577f4dbffaa644dffac292984178d54d40bd782 (diff)
downloadbtpd-88aa2eeb632db763d33e4ac5b27f4bedadfa5168.tar.gz
btpd-88aa2eeb632db763d33e4ac5b27f4bedadfa5168.zip
Better log message.
-rw-r--r--btpd/download.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/btpd/download.c b/btpd/download.c
index fc57542..1553b27 100644
--- a/btpd/download.c
+++ b/btpd/download.c
@@ -113,8 +113,8 @@ dl_on_bad_piece(struct net *n, uint32_t piece)
 {
     struct piece *pc = dl_find_piece(n, piece);
 
-    btpd_log(BTPD_L_ERROR, "Bad hash for piece %u of %s.\n",
-        pc->index, n->tp->relpath);
+    btpd_log(BTPD_L_ERROR, "Bad hash for piece %u of '%s'.\n",
+        pc->index, torrent_name(n->tp));
 
     for (uint32_t i = 0; i < pc->nblocks; i++)
         clear_bit(pc->down_field, i);