throughout: fix broken calls to Printf etc.

I have written a tool to verify Printf calls, and although it's not
ready to be reviewed yet it's already uncovered a spate of problems
in the repository.  I'm sending this CL to break the changes into
pieces; as the tool improves it will find more, I'm sure.

R=rsc
CC=golang-dev
https://golang.org/cl/3427043
This commit is contained in:
Rob Pike 2010-12-07 16:42:54 -05:00
parent ab7884da7e
commit 1ce6245d6c
25 changed files with 114 additions and 114 deletions

View file

@ -829,7 +829,7 @@ func TestNesting(t *testing.T) {
dec := NewDecoder(b)
err := dec.Decode(&drt)
if err != nil {
t.Errorf("decoder error:", err)
t.Error("decoder error:", err)
}
if drt.a != rt.a {
t.Errorf("nesting: encode expected %v got %v", *rt, drt)
@ -1196,7 +1196,7 @@ func TestInterface(t *testing.T) {
}
continue
if v1.Square() != v2.Square() {
t.Errorf("item %d inconsistent values: %v %v", v1, v2)
t.Errorf("item %d inconsistent values: %v %v", i, v1, v2)
}
}
}