diff options
author | Alice <escalice12@gmail.com> | 2023-01-16 11:54:01 +0000 |
---|---|---|
committer | Gopher Robot <gobot@golang.org> | 2023-01-20 01:23:37 +0000 |
commit | ae400d003fd5abdebee84b70cfbe5a8ee855e6cb (patch) | |
tree | ec1c9770950daa123f47a92c0d34c5711733ace8 /misc | |
parent | f33e8f66980dc6d09f54e032266043beb2dbb75e (diff) | |
download | go-git-ae400d003fd5abdebee84b70cfbe5a8ee855e6cb.tar.gz |
misc/cgo/testsanitizers: use fmt.Printf instead fmt.Println
Change-Id: Ie46bc3cbfb2622b5eb70618557ff5398866f5607
GitHub-Last-Rev: a665ef84dd9c11c6c274ad7f1cb51733d8253f6d
GitHub-Pull-Request: golang/go#57813
Reviewed-on: https://go-review.googlesource.com/c/go/+/462044
Run-TryBot: Ian Lance Taylor <iant@golang.org>
Auto-Submit: Ian Lance Taylor <iant@google.com>
Reviewed-by: Ian Lance Taylor <iant@google.com>
Reviewed-by: Cherry Mui <cherryyz@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Run-TryBot: Ian Lance Taylor <iant@google.com>
Diffstat (limited to 'misc')
-rw-r--r-- | misc/cgo/testsanitizers/testdata/msan.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/misc/cgo/testsanitizers/testdata/msan.go b/misc/cgo/testsanitizers/testdata/msan.go index 7915fa84f6..5d73c38079 100644 --- a/misc/cgo/testsanitizers/testdata/msan.go +++ b/misc/cgo/testsanitizers/testdata/msan.go @@ -28,7 +28,7 @@ func main() { C.f((*C.int32_t)(unsafe.Pointer(&a[0])), C.int(len(a))) for i, v := range a { if i != int(v) { - fmt.Println("bad %d: %v\n", i, a) + fmt.Printf("bad %d: %v\n", i, a) os.Exit(1) } } |