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
diff --git a/src/pkg/unicode/maketables.go b/src/pkg/unicode/maketables.go
index 4c6d83f..c8e7eb4 100644
--- a/src/pkg/unicode/maketables.go
+++ b/src/pkg/unicode/maketables.go
@@ -329,7 +329,7 @@
for k, _ := range category {
fmt.Printf("\t%q: %s,\n", k, k)
}
- fmt.Printf("}\n\n")
+ fmt.Print("}\n\n")
}
decl := make(sort.StringArray, len(list))
@@ -377,7 +377,7 @@
for _, d := range decl {
fmt.Print(d)
}
- fmt.Println(")\n")
+ fmt.Print(")\n\n")
}
type Op func(code int) bool
@@ -597,7 +597,7 @@
for k, _ := range table {
fmt.Printf("\t%q: %s,\n", k, k)
}
- fmt.Printf("}\n\n")
+ fmt.Print("}\n\n")
}
decl := make(sort.StringArray, len(list))
@@ -618,14 +618,14 @@
for _, s := range ranges {
fmt.Printf(format, s.Lo, s.Hi, s.Stride)
}
- fmt.Printf("}\n\n")
+ fmt.Print("}\n\n")
}
decl.Sort()
fmt.Println("var (")
for _, d := range decl {
fmt.Print(d)
}
- fmt.Println(")\n")
+ fmt.Print(")\n\n")
}
const (
@@ -792,7 +792,7 @@
}
prevState = state
}
- fmt.Printf("}\n")
+ fmt.Print("}\n")
}
func printCaseRange(lo, hi *caseState) {