From 7784031254cce80098826c6bd870de881063c1dc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=96zg=C3=BCr=20Kesim?= Date: Sun, 16 Jun 2019 11:31:04 +0200 Subject: [PATCH] use Sprint instead of Sprintf --- debugon.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/debugon.go b/debugon.go index 9889dc4..dcb8678 100644 --- a/debugon.go +++ b/debugon.go @@ -45,7 +45,9 @@ func (dp *debugParser) logf(ps *State, result *Result, format string, args ...in buf.WriteString(fmt.Sprintf("%-15s", ps.Preview(15))) buf.WriteString(" | ") buf.WriteString(strings.Repeat(" ", len(activeParsers)-1)) - buf.WriteString(fmt.Sprint(append([]interface{}{format}, args...)...)) + //buf.WriteString(fmt.Sprintf(format, args...)) + buf.WriteString(format) + buf.WriteString(fmt.Sprint(args...)) if ps.Errored() { buf.WriteString(fmt.Sprintf(" did not find %s", ps.Error.expected)) } else if result != nil {