diff options
author | Dmitry Vyukov <dvyukov@google.com> | 2019-08-17 13:22:22 -0700 |
---|---|---|
committer | Dmitry Vyukov <dvyukov@google.com> | 2019-08-18 01:16:33 +0000 |
commit | 0dd120df7e97387411ddba9f58384e69e8862073 (patch) | |
tree | 3887fc5def4036ed766efd9c7875f2d1f93b0524 | |
parent | c485506b0aae298652448e80fca35036bfa755ac (diff) | |
download | go-0dd120df7e97387411ddba9f58384e69e8862073.tar.gz go-0dd120df7e97387411ddba9f58384e69e8862073.zip |
encoding/json: fix format string in the Fuzz func
Currently test build fails with:
$ go test -tags=gofuzz encoding/json
encoding/json/fuzz.go:36:4: Println call has possible formatting directive %s
FAIL encoding/json [build failed]
Change-Id: I23aef44a421ed0e7bcf48b74ac5a8c6768a4841b
Reviewed-on: https://go-review.googlesource.com/c/go/+/190698
Run-TryBot: Ian Lance Taylor <iant@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Ian Lance Taylor <iant@golang.org>
-rw-r--r-- | src/encoding/json/fuzz.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/encoding/json/fuzz.go b/src/encoding/json/fuzz.go index 4872b6f7ee..be03f0d7ff 100644 --- a/src/encoding/json/fuzz.go +++ b/src/encoding/json/fuzz.go @@ -33,7 +33,7 @@ func Fuzz(data []byte) (score int) { err = Unmarshal(m, u) if err != nil { fmt.Printf("v=%#v\n", v) - fmt.Println("m=%s\n", string(m)) + fmt.Printf("m=%s\n", m) panic(err) } } |