mirror of
https://github.com/golang/go
synced 2024-11-14 06:20:23 -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:
parent
f33e8f6698
commit
ae400d003f
2
misc/cgo/testsanitizers/testdata/msan.go
vendored
2
misc/cgo/testsanitizers/testdata/msan.go
vendored
@ -28,7 +28,7 @@ func main() {
|
|||||||
C.f((*C.int32_t)(unsafe.Pointer(&a[0])), C.int(len(a)))
|
C.f((*C.int32_t)(unsafe.Pointer(&a[0])), C.int(len(a)))
|
||||||
for i, v := range a {
|
for i, v := range a {
|
||||||
if i != int(v) {
|
if i != int(v) {
|
||||||
fmt.Println("bad %d: %v\n", i, a)
|
fmt.Printf("bad %d: %v\n", i, a)
|
||||||
os.Exit(1)
|
os.Exit(1)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user