1
0
mirror of https://github.com/golang/go synced 2024-09-23 15:20:13 -06:00

Merge pull request #1 from EscAlice/master-msan

misc/cgo/testsanitizers: use fmt.Printf instead fmt.Println
This commit is contained in:
Alice 2023-01-16 19:47:56 +08:00 committed by GitHub
commit a665ef84dd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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