]> Sergey Matveev's repositories - btrtrc.git/commitdiff
cmd/torrent-verify: Fix piece hash output
authorMatt Joiner <anacrolix@gmail.com>
Mon, 1 Jun 2020 01:16:17 +0000 (11:16 +1000)
committerMatt Joiner <anacrolix@gmail.com>
Mon, 1 Jun 2020 01:16:17 +0000 (11:16 +1000)
cmd/torrent-verify/main.go

index d7b2dd3d72f27ef4de9c10b2fcd6c3d6a958a24e..0b7f21543bcd3c4bef5bcf2764c6329b10b0d417 100644 (file)
@@ -58,7 +58,7 @@ func verifyTorrent(info *metainfo.Info, root string) error {
                if !good {
                        return fmt.Errorf("hash mismatch at piece %d", i)
                }
-               fmt.Printf("%d: %x: %v\n", i, p.Hash(), good)
+               fmt.Printf("%d: %v: %v\n", i, p.Hash(), good)
        }
        return nil
 }