]> Cypherpunks.ru repositories - gostls13.git/commitdiff
misc/cgo/testsanitizers: use fmt.Printf instead fmt.Println
authorAlice <escalice12@gmail.com>
Mon, 16 Jan 2023 11:54:01 +0000 (11:54 +0000)
committerGopher Robot <gobot@golang.org>
Fri, 20 Jan 2023 01:23:37 +0000 (01:23 +0000)
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 <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>

misc/cgo/testsanitizers/testdata/msan.go

index 7915fa84f602b8bc3a87ccf0b09e31e97ac227f0..5d73c3807925da7412231d432919029eaee70ac5 100644 (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)
                }
        }