]> Sergey Matveev's repositories - btrtrc.git/commitdiff
Fix a log format string
authorMatt Joiner <anacrolix@gmail.com>
Sun, 7 Jan 2018 08:24:00 +0000 (19:24 +1100)
committerMatt Joiner <anacrolix@gmail.com>
Sun, 7 Jan 2018 08:24:00 +0000 (19:24 +1100)
connection.go

index 60cadb2006041311954b4c8c36c7019374582c67..34737d6bbde12903d24a03f49fb6a8ed0c65b030 100644 (file)
@@ -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