summaryrefslogtreecommitdiff
path: root/src/cmd
diff options
context:
space:
mode:
authorRuss Cox <rsc@golang.org>2010-09-24 11:55:48 -0400
committerRuss Cox <rsc@golang.org>2010-09-24 11:55:48 -0400
commitd5165e014a48caf4e70ee689a9aa91f518c6b0e6 (patch)
tree891771a88ca051db8f5401574bb5d2f70ef8a4ff /src/cmd
parentae57636feb9528a094e23a8b4bde17b418a94b00 (diff)
downloadgo-d5165e014a48caf4e70ee689a9aa91f518c6b0e6.tar.gz
... changes
R=golang-dev, gri CC=golang-dev http://codereview.appspot.com/2273042
Diffstat (limited to 'src/cmd')
-rw-r--r--src/cmd/cgo/util.go4
-rw-r--r--src/cmd/goyacc/goyacc.go2
2 files changed, 3 insertions, 3 deletions
diff --git a/src/cmd/cgo/util.go b/src/cmd/cgo/util.go
index 391198295..5c7fc7205 100644
--- a/src/cmd/cgo/util.go
+++ b/src/cmd/cgo/util.go
@@ -67,7 +67,7 @@ func run(stdin []byte, argv []string) (stdout, stderr []byte, ok bool) {
// Die with an error message.
func fatal(msg string, args ...interface{}) {
- fmt.Fprintf(os.Stderr, msg+"\n", args)
+ fmt.Fprintf(os.Stderr, msg+"\n", args...)
os.Exit(2)
}
@@ -79,7 +79,7 @@ func error(pos token.Position, msg string, args ...interface{}) {
if pos.IsValid() {
fmt.Fprintf(os.Stderr, "%s: ", pos)
}
- fmt.Fprintf(os.Stderr, msg, args)
+ fmt.Fprintf(os.Stderr, msg, args...)
fmt.Fprintf(os.Stderr, "\n")
}
diff --git a/src/cmd/goyacc/goyacc.go b/src/cmd/goyacc/goyacc.go
index 45dced1b3..ff7dcd250 100644
--- a/src/cmd/goyacc/goyacc.go
+++ b/src/cmd/goyacc/goyacc.go
@@ -3052,7 +3052,7 @@ func create(s string, m uint32) *bufio.Writer {
//
func error(s string, v ...interface{}) {
nerrors++
- fmt.Fprintf(stderr, s, v)
+ fmt.Fprintf(stderr, s, v...)
fmt.Fprintf(stderr, ": %v:%v\n", infile, lineno)
if fatfl != 0 {
summary()