diff --git a/torrent.go b/torrent.go index ed58da14..b9aefae3 100644 --- a/torrent.go +++ b/torrent.go @@ -1446,12 +1446,12 @@ func (t *Torrent) pieceHashed(piece int, correct bool) { c.badPiecesDirtied++ } slices.Sort(touchers, connLessTrusted) - log.Printf("dropping first corresponding conn from trust: %s", func() (ret []int) { + log.Printf("dropping first corresponding conn from trust: %v", func() (ret []int) { for _, c := range touchers { ret = append(ret, c.netGoodPiecesDirtied()) } return - }) + }()) c := touchers[0] t.cl.banPeerIP(missinggo.AddrIP(c.remoteAddr())) c.Drop()