From: Matt Joiner Date: Sun, 7 Jan 2018 08:24:00 +0000 (+1100) Subject: Fix a log format string X-Git-Tag: v1.0.0~293 X-Git-Url: http://www.git.stargrave.org/?a=commitdiff_plain;h=ff6f28f87c748ffc05fe8b40b20f60bb70efdda2;p=btrtrc.git Fix a log format string --- diff --git a/connection.go b/connection.go index 60cadb20..34737d6b 100644 --- a/connection.go +++ b/connection.go @@ -1077,7 +1077,7 @@ func (c *connection) receiveChunk(msg *pp.Message) { piece.decrementPendingWrites() if err != nil { - log.Printf("%s (%x): error writing chunk %v: %s", t, t.infoHash, req, err) + log.Printf("%s (%s): error writing chunk %v: %s", t, t.infoHash, req, err) t.pendRequest(req) t.updatePieceCompletion(int(msg.Index)) return