]> Cypherpunks repositories - gostls13.git/commitdiff
all: errors caught by go vet
authorRob Pike <r@golang.org>
Thu, 16 Feb 2012 06:21:21 +0000 (17:21 +1100)
committerRob Pike <r@golang.org>
Thu, 16 Feb 2012 06:21:21 +0000 (17:21 +1100)
R=golang-dev, dsymonds
CC=golang-dev
https://golang.org/cl/5674069

misc/cgo/test/basic.go
test/map.go

index 7aaae1522213b0cdf60f2c2d574ab84798cf378b..cd6d88168630a212c8ad2e1c35c4a9af53c01959 100644 (file)
@@ -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)
        }
 }
 
index 215e56c7f64de8ba5db97187bbed69acee6fbc12..8e1af0e9c47f2cbe767ea72c868ec7aa421b2b3e 100644 (file)
@@ -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])
                }
        }