summaryrefslogtreecommitdiff
path: root/src/cmd/cgo/main.go
diff options
context:
space:
mode:
authorRob Pike <r@golang.org>2011-04-13 16:57:44 -0700
committerRob Pike <r@golang.org>2011-04-13 16:57:44 -0700
commitc188dbb312f346036a5a7fca9efb19bf7b509b29 (patch)
treea485cb82aa4e9926e85314b9fda6bd9b9675e549 /src/cmd/cgo/main.go
parent4558fab0822c3f43451248cad34420e1e8c629fd (diff)
downloadgo-c188dbb312f346036a5a7fca9efb19bf7b509b29.tar.gz
govet: make name-matching for printf etc. case-insensitive.
Update goyacc, cgo to be more canonical in their naming and silence the new warnings. R=rsc, gri CC=golang-dev http://codereview.appspot.com/4417042
Diffstat (limited to 'src/cmd/cgo/main.go')
-rw-r--r--src/cmd/cgo/main.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/cmd/cgo/main.go b/src/cmd/cgo/main.go
index 584e54708..00ffc4506 100644
--- a/src/cmd/cgo/main.go
+++ b/src/cmd/cgo/main.go
@@ -177,11 +177,11 @@ func main() {
arch := os.Getenv("GOARCH")
if arch == "" {
- fatal("$GOARCH is not set")
+ fatalf("$GOARCH is not set")
}
ptrSize := ptrSizeMap[arch]
if ptrSize == 0 {
- fatal("unknown $GOARCH %q", arch)
+ fatalf("unknown $GOARCH %q", arch)
}
// Clear locale variables so gcc emits English errors [sic].
@@ -205,7 +205,7 @@ func main() {
for _, input := range goFiles {
f, err := os.Open(input)
if err != nil {
- fatal("%s", err)
+ fatalf("%s", err)
}
io.Copy(h, f)
f.Close()