]> Sergey Matveev's repositories - btrtrc.git/commitdiff
Fix double quoting in a log statement
authorMatt Joiner <anacrolix@gmail.com>
Sun, 3 Mar 2019 03:30:46 +0000 (14:30 +1100)
committerMatt Joiner <anacrolix@gmail.com>
Sun, 3 Mar 2019 03:31:08 +0000 (14:31 +1100)
reader.go

index 07eefc87db05e67dccc952f24f245e9dc81966aa..a5ea62f2ce092535b4fdf19a95a24f0a93696a8c 100644 (file)
--- a/reader.go
+++ b/reader.go
@@ -225,7 +225,8 @@ func (r *reader) readOnceAt(b []byte, pos int64, ctxErr *error) (n int, err erro
                r.t.cl.lock()
                // TODO: Just reset pieces in the readahead window. This might help
                // prevent thrashing with small caches and file and piece priorities.
-               log.Printf("error reading torrent %q piece %d offset %d, %d bytes: %s", r.t, pi, po, len(b1), err)
+               log.Printf("error reading torrent %s piece %d offset %d, %d bytes: %s",
+                       r.t.infoHash.HexString(), pi, po, len(b1), err)
                r.t.updateAllPieceCompletions()
                r.t.updateAllPiecePriorities()
                r.t.cl.unlock()