From: Alice Date: Mon, 16 Jan 2023 11:54:01 +0000 (+0000) Subject: misc/cgo/testsanitizers: use fmt.Printf instead fmt.Println X-Git-Tag: go1.21rc1~1875 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=ae400d003fd5abdebee84b70cfbe5a8ee855e6cb;p=gostls13.git 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 Auto-Submit: Ian Lance Taylor Reviewed-by: Ian Lance Taylor Reviewed-by: Cherry Mui TryBot-Result: Gopher Robot Run-TryBot: Ian Lance Taylor --- 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) } }