From: Matt Joiner <anacrolix@gmail.com> Date: Tue, 12 Jun 2018 11:51:34 +0000 (+1000) Subject: Fix build error with recent go version X-Git-Tag: v1.0.0~127^2~34 X-Git-Url: http://www.git.stargrave.org/?a=commitdiff_plain;h=224522545b3d16c01d4d378219d5b7093117105c;p=btrtrc.git Fix build error with recent go version --- diff --git a/torrent.go b/torrent.go index fc1fb5df..91f72da8 100644 --- a/torrent.go +++ b/torrent.go @@ -1522,7 +1522,7 @@ func (t *Torrent) addConnection(c *connection) error { if len(t.conns) >= t.maxEstablishedConns { c := t.worstBadConn() if t.cl.config.Debug && missinggo.CryHeard() { - log.Printf("%s: dropping connection to make room for new one:\n %s", t, c) + log.Printf("%s: dropping connection to make room for new one:\n %v", t, c) } c.Close() t.deleteConnection(c)