1
0
mirror of https://github.com/golang/go synced 2024-11-11 19:11:35 -07:00

misc/cgo/testsanitizers: use fmt.Printf instead fmt.Println

Change-Id: Ie46bc3cbfb2622b5eb70618557ff5398866f5607
GitHub-Last-Rev: a665ef84dd
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>
This commit is contained in:
Alice 2023-01-16 11:54:01 +00:00 committed by Gopher Robot
parent f33e8f6698
commit ae400d003f

View File

@ -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)
}
}