From e270f045462d713c63b3a849ce2b464156d789f3 Mon Sep 17 00:00:00 2001 From: EscAlice Date: Mon, 16 Jan 2023 19:42:28 +0800 Subject: [PATCH] misc/cgo/testsanitizers: use fmt.Printf instead fmt.Println --- misc/cgo/testsanitizers/testdata/msan.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) } }