From 4639cd3919e4243a672a11a56543004bf1778326 Mon Sep 17 00:00:00 2001 From: Kevin Burke Date: Sat, 4 Aug 2018 09:28:28 -0700 Subject: [PATCH] cmd/racebuild: fix errors reported by go vet Change-Id: I79b07beeb284386b1683cfb22f283b18caaee0ce Reviewed-on: https://go-review.googlesource.com/127919 Reviewed-by: Brad Fitzpatrick --- cmd/racebuild/racebuild.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/cmd/racebuild/racebuild.go b/cmd/racebuild/racebuild.go index f48d7fee63..28899a2f68 100644 --- a/cmd/racebuild/racebuild.go +++ b/cmd/racebuild/racebuild.go @@ -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 } @@ -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) @@ -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 }