From c577f4dbffaa644dffac292984178d54d40bd782 Mon Sep 17 00:00:00 2001
From: Richard Nyberg <rnyberg@murmeldjur.se>
Date: Fri, 10 Feb 2006 21:02:31 +0000
Subject: [PATCH] Better log message.

---
 btpd/download.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/btpd/download.c b/btpd/download.c
index 0316cc1..fc57542 100644
--- a/btpd/download.c
+++ b/btpd/download.c
@@ -97,7 +97,8 @@ dl_on_ok_piece(struct net *n, uint32_t piece)
     piece_free(pc);
 
     if (cm_full(n->tp)) {
-        btpd_log(BTPD_L_BTPD, "Finished: %s.\n", n->tp->relpath);
+        btpd_log(BTPD_L_BTPD, "Finished downloading '%s'.\n",
+            torrent_name(tn->tp));
         tr_complete(n->tp);
         BTPDQ_FOREACH(p, &n->peers, p_entry)
             assert(p->nwant == 0);