Browse Source

Better log message.

master
Richard Nyberg 19 years ago
parent
commit
88aa2eeb63
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      btpd/download.c

+ 2
- 2
btpd/download.c View File

@@ -113,8 +113,8 @@ dl_on_bad_piece(struct net *n, uint32_t piece)
{ {
struct piece *pc = dl_find_piece(n, 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++) for (uint32_t i = 0; i < pc->nblocks; i++)
clear_bit(pc->down_field, i); clear_bit(pc->down_field, i);


Loading…
Cancel
Save