From: Rob Pike Date: Thu, 16 Feb 2012 06:21:21 +0000 (+1100) Subject: all: errors caught by go vet X-Git-Tag: weekly.2012-02-22~194 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=21be71a41966c4b8d9107dec47bed1b3867487bb;p=gostls13.git all: errors caught by go vet R=golang-dev, dsymonds CC=golang-dev https://golang.org/cl/5674069 --- diff --git a/misc/cgo/test/basic.go b/misc/cgo/test/basic.go index 7aaae15222..cd6d881686 100644 --- a/misc/cgo/test/basic.go +++ b/misc/cgo/test/basic.go @@ -111,7 +111,7 @@ func testErrno(t *testing.T) { t.Fatalf("C.fopen: should fail") } if err != os.ENOENT { - t.Fatalf("C.fopen: unexpected error: ", err) + t.Fatalf("C.fopen: unexpected error: %v", err) } } diff --git a/test/map.go b/test/map.go index 215e56c7f6..8e1af0e9c4 100644 --- a/test/map.go +++ b/test/map.go @@ -487,7 +487,7 @@ func testbasic() { mipM[i][i]++ if mipM[i][i] != (i+1)+1 { - fmt.Printf("update mipM[%d][%d] = %i\n", i, i, mipM[i][i]) + fmt.Printf("update mipM[%d][%d] = %d\n", i, i, mipM[i][i]) } }