1
0
mirror of https://github.com/golang/go synced 2024-11-25 01:47:56 -07:00

various: fix prints

R=golang-dev, gri
CC=golang-dev
https://golang.org/cl/5516049
This commit is contained in:
Robert Hencke 2012-01-05 18:38:01 -08:00 committed by Robert Griesemer
parent 2c459f14e9
commit a3baccefd6
3 changed files with 3 additions and 3 deletions

View 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
}

View 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)

View 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") }},