From: Nodir Turakulov Date: Fri, 9 Oct 2015 18:59:58 +0000 (-0700) Subject: cmd/go: print all warnings to stderr X-Git-Tag: go1.6beta1~865 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=881509357261c88addbe0eb30a6eebba2b387fe8;p=gostls13.git cmd/go: print all warnings to stderr All warnings in cmd/go are printed using fmt.Fprintf(os.Stderr...) except one in test.go which is printed using log.Printf. This is a minor inconsistency. Change-Id: Ib470d318810b44b86e6cfaa77e9a556a5ad94069 Reviewed-on: https://go-review.googlesource.com/15657 Run-TryBot: Brad Fitzpatrick TryBot-Result: Gobot Gobot Reviewed-by: Brad Fitzpatrick --- diff --git a/src/cmd/go/test.go b/src/cmd/go/test.go index fa5ef3eb65..f72c2272f0 100644 --- a/src/cmd/go/test.go +++ b/src/cmd/go/test.go @@ -13,7 +13,6 @@ import ( "go/doc" "go/parser" "go/token" - "log" "os" "os/exec" "path" @@ -439,7 +438,7 @@ func runTest(cmd *Command, args []string) { } for _, p := range testCoverPkgs { if !used[p.ImportPath] { - log.Printf("warning: no packages being tested depend on %s", p.ImportPath) + fmt.Fprintf(os.Stderr, "warning: no packages being tested depend on %s\n", p.ImportPath) } }