Skip to content

Commit

Permalink
cmd/racebuild: fix errors reported by go vet
Browse files Browse the repository at this point in the history
Change-Id: I79b07beeb284386b1683cfb22f283b18caaee0ce
Reviewed-on: https://go-review.googlesource.com/127919
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
  • Loading branch information
kevinburke authored and bradfitz committed Aug 4, 2018
1 parent c1b72a7 commit 4639cd3
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions cmd/racebuild/racebuild.go
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ func init() {
seen := make(map[string]bool)
for _, p := range platforms {
if seen[p.Name()] {
log.Fatal("Duplicate platforms entry for %s.", p.Name())
log.Fatalf("Duplicate platforms entry for %s.", p.Name())
}
seen[p.Name()] = true
}
Expand Down Expand Up @@ -224,7 +224,7 @@ func main() {
cmd.Stderr = os.Stderr
out, err := cmd.Output()
if err != nil {
log.Fatal("%s failed: %v", strings.Join(cmd.Args, " "), err)
log.Fatalf("%s failed: %v", strings.Join(cmd.Args, " "), err)
}
goRev = string(bytes.TrimSpace(out))
log.Printf("using Go revision: %s", goRev)
Expand Down Expand Up @@ -291,7 +291,7 @@ func (p *Platform) Build(ctx context.Context) error {
default:
// Creation sometimes fails with transient errors like:
// "buildlet didn't come up at http://10.240.0.13 in 3m0s".
log.Printf("%v: instance creation failed, retrying", p.Name)
log.Printf("%v: instance creation failed, retrying", p.Name())
lastErr = err
continue
}
Expand Down

0 comments on commit 4639cd3

Please sign in to comment.