Commit 21be71a4 authored by Rob Pike's avatar Rob Pike

all: errors caught by go vet

R=golang-dev, dsymonds
CC=golang-dev
https://golang.org/cl/5674069
parent e8edf84d
...@@ -111,7 +111,7 @@ func testErrno(t *testing.T) { ...@@ -111,7 +111,7 @@ func testErrno(t *testing.T) {
t.Fatalf("C.fopen: should fail") t.Fatalf("C.fopen: should fail")
} }
if err != os.ENOENT { if err != os.ENOENT {
t.Fatalf("C.fopen: unexpected error: ", err) t.Fatalf("C.fopen: unexpected error: %v", err)
} }
} }
......
...@@ -487,7 +487,7 @@ func testbasic() { ...@@ -487,7 +487,7 @@ func testbasic() {
mipM[i][i]++ mipM[i][i]++
if mipM[i][i] != (i+1)+1 { 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])
} }
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment