1
0
mirror of https://github.com/golang/go synced 2024-11-18 08:54:45 -07:00

cmd/toolstash: fix format string arguments

Found by vet.

Follow-up to comments on CL 32682.

Change-Id: I76391e02b9991bc480404f634ea809e75645e9dc
Reviewed-on: https://go-review.googlesource.com/32918
Reviewed-by: Alan Donovan <adonovan@google.com>
This commit is contained in:
Josh Bleecher Snyder 2016-11-08 12:45:54 -08:00
parent 7ce0cddaad
commit 44b4c5d044

View File

@ -457,7 +457,7 @@ func skipVersion(b1, b2 *bufio.Reader, file1, file2 string) bool {
for {
c1, err1 := b1.ReadByte()
if err1 == io.EOF {
log.Fatalf("reading %s: unexpected EOF", file1, err1)
log.Fatalf("reading %s: unexpected EOF", file1)
}
if err1 != nil {
log.Fatalf("reading %s: %v", file1, err1)
@ -469,7 +469,7 @@ func skipVersion(b1, b2 *bufio.Reader, file1, file2 string) bool {
for {
c2, err2 := b2.ReadByte()
if err2 == io.EOF {
log.Fatalf("reading %s: unexpected EOF", file2, err2)
log.Fatalf("reading %s: unexpected EOF", file2)
}
if err2 != nil {
log.Fatalf("reading %s: %v", file2, err2)