diff --git a/tracker/progress.go b/tracker/progress.go index f4e1e07d..5948fadf 100644 --- a/tracker/progress.go +++ b/tracker/progress.go @@ -246,7 +246,7 @@ func (pr *Progress) String() string { fmt.Fprintf(&buf, " pendingSnap=%d", pr.PendingSnapshot) } if !pr.RecentActive { - fmt.Fprintf(&buf, " inactive") + fmt.Fprint(&buf, " inactive") } if n := pr.Inflights.Count(); n > 0 { fmt.Fprintf(&buf, " inflight=%d", n) diff --git a/tracker/tracker.go b/tracker/tracker.go index 938b7878..cf60c23b 100644 --- a/tracker/tracker.go +++ b/tracker/tracker.go @@ -87,7 +87,7 @@ func (c Config) String() string { fmt.Fprintf(&buf, " learners_next=%s", quorum.MajorityConfig(c.LearnersNext).String()) } if c.AutoLeave { - fmt.Fprintf(&buf, " autoleave") + fmt.Fprint(&buf, " autoleave") } return buf.String() } diff --git a/util.go b/util.go index 0510d3f7..95591f53 100644 --- a/util.go +++ b/util.go @@ -161,14 +161,14 @@ func DescribeMessage(m pb.Message, f EntryFormatter) string { fmt.Fprintf(&buf, " Commit:%d", m.Commit) } if len(m.Entries) > 0 { - fmt.Fprintf(&buf, " Entries:[") + fmt.Fprint(&buf, " Entries:[") for i, e := range m.Entries { if i != 0 { buf.WriteString(", ") } buf.WriteString(DescribeEntry(e, f)) } - fmt.Fprintf(&buf, "]") + fmt.Fprint(&buf, "]") } if s := m.Snapshot; s != nil && !IsEmptySnap(*s) { fmt.Fprintf(&buf, " Snapshot: %s", DescribeSnapshot(*s))