mirror of
https://github.com/golang/go
synced 2024-11-11 22:50:22 -07:00
various: fix prints
R=golang-dev, gri CC=golang-dev https://golang.org/cl/5516049
This commit is contained in:
parent
2c459f14e9
commit
a3baccefd6
@ -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
|
||||
}
|
||||
|
||||
|
@ -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)
|
||||
|
@ -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") }},
|
||||
|
Loading…
Reference in New Issue
Block a user