mirror of
https://github.com/golang/go
synced 2024-11-22 15:34:53 -07:00
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:
parent
23aefcd9ae
commit
e858a6b9f0
@ -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)
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -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)
|
||||
}
|
||||
|
@ -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)
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user