]> Cypherpunks repositories - gostls13.git/commitdiff
various: fix prints
authorRobert Hencke <robert.hencke@gmail.com>
Fri, 6 Jan 2012 02:38:01 +0000 (18:38 -0800)
committerRobert Griesemer <gri@golang.org>
Fri, 6 Jan 2012 02:38:01 +0000 (18:38 -0800)
R=golang-dev, gri
CC=golang-dev
https://golang.org/cl/5516049

misc/dashboard/app/build/notify.go
src/cmd/gotest/gotest.go
src/pkg/fmt/fmt_test.go

index 54a09bfd871707bc7ab9b14f0a2b6587433a7009..09975b2908371cb1dd50997e15d3466d9ad35af6 100644 (file)
@@ -119,7 +119,7 @@ func sendFailMail(c appengine.Context, com *Commit, builder string) {
        k := datastore.NewKey(c, "Log", r.LogHash, 0, nil)
        l := new(Log)
        if err := datastore.Get(c, k, l); err != nil {
-               c.Errorf("finding Log record %v: err", r.LogHash, err)
+               c.Errorf("finding Log record %v: %v", r.LogHash, err)
                return
        }
 
index 8a8dad557a06fe55c460c8a59fdb1d0be45fb8d3..c97debb06466f83d96effb6c468ce52e783e5d78 100644 (file)
@@ -401,7 +401,7 @@ func writeTestmainGo() {
        fmt.Fprintln(b) // for gofmt
 
        // Tests.
-       fmt.Fprintln(b, "var tests = []testing.InternalTest{\n")
+       fmt.Fprintf(b, "var tests = []testing.InternalTest{\n")
        for _, f := range files {
                for _, t := range f.tests {
                        fmt.Fprintf(b, "\t{\"%s.%s\", %s.%s},\n", f.pkg, t, renamedPackage(f.pkg), t)
index d34a4f8fd2d368c2ce81f4497d26ee69be6c4d45..beb410fa117fd94172a8160e0741eaacb7e64cbc 100644 (file)
@@ -517,7 +517,7 @@ var mallocTest = []struct {
        {1, `Sprintf("xxx")`, func() { Sprintf("xxx") }},
        {1, `Sprintf("%x")`, func() { Sprintf("%x", 7) }},
        {2, `Sprintf("%s")`, func() { Sprintf("%s", "hello") }},
-       {1, `Sprintf("%x %x")`, func() { Sprintf("%x", 7, 112) }},
+       {1, `Sprintf("%x %x")`, func() { Sprintf("%x %x", 7, 112) }},
        {1, `Sprintf("%g")`, func() { Sprintf("%g", 3.14159) }},
        {0, `Fprintf(buf, "%x %x %x")`, func() { mallocBuf.Reset(); Fprintf(&mallocBuf, "%x %x %x", 7, 8, 9) }},
        {1, `Fprintf(buf, "%s")`, func() { mallocBuf.Reset(); Fprintf(&mallocBuf, "%s", "hello") }},