all: use Fatalf instead of Fatal if format is given

Change-Id: I30e9b938bb19ed4e674c3ea4a1cd389b9c4f0b88
Reviewed-on: https://go-review.googlesource.com/86875
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
Run-TryBot: Brad Fitzpatrick <bradfitz@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
This commit is contained in:
Kunpei Sakai 2018-01-09 20:34:33 +09:00 committed by Brad Fitzpatrick
parent 23aefcd9ae
commit e858a6b9f0
3 changed files with 3 additions and 3 deletions

View file

@ -407,7 +407,7 @@ func (d *tempDir) RemoveAll(t *testing.T) {
return
}
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)
}
}

View file

@ -37,7 +37,7 @@ func main() {
if strings.HasPrefix(line, goarchPrefix) {
text, err := strconv.Unquote(strings.TrimPrefix(line, goarchPrefix))
if err != nil {
log.Fatal("parsing goarchList: %v", err)
log.Fatalf("parsing goarchList: %v", err)
}
goarches = strings.Fields(text)
}

View file

@ -68,6 +68,6 @@ func main() {
log.Fatal("no error from memcopy across memory hole")
}
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)
}
}