]> Sergey Matveev's repositories - btrtrc.git/commitdiff
Fix a logging of metainfo.Hash
authorMatt Joiner <anacrolix@gmail.com>
Fri, 24 Feb 2017 10:56:23 +0000 (21:56 +1100)
committerMatt Joiner <anacrolix@gmail.com>
Fri, 24 Feb 2017 10:56:23 +0000 (21:56 +1100)
torrent.go

index 81244acd2f3d59922baaff19e677c7e889f7f611..397c13ac572e78418d3831ab3bb2ac726df612e7 100644 (file)
@@ -1357,7 +1357,7 @@ func (t *Torrent) pieceHashed(piece int, correct bool) {
                if correct {
                        pieceHashedCorrect.Add(1)
                } else {
-                       log.Printf("%s: piece %d (%x) failed hash: %d connections contributed", t, piece, p.Hash, len(touchers))
+                       log.Printf("%s: piece %d (%s) failed hash: %d connections contributed", t, piece, p.Hash, len(touchers))
                        pieceHashedNotCorrect.Add(1)
                }
        }