From c639cce605c5dfa1c2d186400b570c2d37d0e532 Mon Sep 17 00:00:00 2001 From: Matt Joiner Date: Sun, 3 Mar 2019 14:30:46 +1100 Subject: [PATCH] Fix double quoting in a log statement --- reader.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/reader.go b/reader.go index 07eefc87..a5ea62f2 100644 --- 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() -- 2.48.1