Commit e858a6b9 authored by Kunpei Sakai's avatar Kunpei Sakai Committed by Brad Fitzpatrick

all: use Fatalf instead of Fatal if format is given

Change-Id: I30e9b938bb19ed4e674c3ea4a1cd389b9c4f0b88
Reviewed-on: https://go-review.googlesource.com/86875Reviewed-by: default avatarBrad Fitzpatrick <bradfitz@golang.org>
Run-TryBot: Brad Fitzpatrick <bradfitz@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
parent 23aefcd9
...@@ -407,7 +407,7 @@ func (d *tempDir) RemoveAll(t *testing.T) { ...@@ -407,7 +407,7 @@ func (d *tempDir) RemoveAll(t *testing.T) {
return return
} }
if err := os.RemoveAll(d.base); err != nil { if err := os.RemoveAll(d.base); err != nil {
t.Fatal("Failed to remove temp dir: %v", err) t.Fatalf("Failed to remove temp dir: %v", err)
} }
} }
......
...@@ -37,7 +37,7 @@ func main() { ...@@ -37,7 +37,7 @@ func main() {
if strings.HasPrefix(line, goarchPrefix) { if strings.HasPrefix(line, goarchPrefix) {
text, err := strconv.Unquote(strings.TrimPrefix(line, goarchPrefix)) text, err := strconv.Unquote(strings.TrimPrefix(line, goarchPrefix))
if err != nil { if err != nil {
log.Fatal("parsing goarchList: %v", err) log.Fatalf("parsing goarchList: %v", err)
} }
goarches = strings.Fields(text) goarches = strings.Fields(text)
} }
......
...@@ -68,6 +68,6 @@ func main() { ...@@ -68,6 +68,6 @@ func main() {
log.Fatal("no error from memcopy across memory hole") log.Fatal("no error from memcopy across memory hole")
} }
if n != 8*size-5 { if n != 8*size-5 {
log.Fatal("memcopy returned %d, want %d", n, 8*size-5) log.Fatalf("memcopy returned %d, want %d", n, 8*size-5)
} }
} }
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment