mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
Fix misuses of format based logging functions
Signed-off-by: Tõnis Tiigi <tonistiigi@gmail.com> (github: tonistiigi)
This commit is contained in:
parent
c8926bb579
commit
6705477673
4 changed files with 4 additions and 4 deletions
|
@ -33,7 +33,7 @@ func newDriver(t *testing.T, name string) *Driver {
|
|||
d, err := graphdriver.GetDriver(name, root, nil)
|
||||
if err != nil {
|
||||
if err == graphdriver.ErrNotSupported || err == graphdriver.ErrPrerequisites {
|
||||
t.Skip("Driver %s not supported", name)
|
||||
t.Skipf("Driver %s not supported", name)
|
||||
}
|
||||
t.Fatal(err)
|
||||
}
|
||||
|
|
|
@ -112,7 +112,7 @@ func StoreImage(img *Image, layerData archive.ArchiveReader, root string) error
|
|||
checksum := layerTarSum.Sum(nil)
|
||||
|
||||
if img.Checksum != "" && img.Checksum != checksum {
|
||||
log.Warn("image layer checksum mismatch: computed %q, expected %q", checksum, img.Checksum)
|
||||
log.Warnf("image layer checksum mismatch: computed %q, expected %q", checksum, img.Checksum)
|
||||
}
|
||||
|
||||
img.Checksum = checksum
|
||||
|
|
|
@ -220,7 +220,7 @@ func TestEventsImagePull(t *testing.T) {
|
|||
since := time.Now().Unix()
|
||||
pullCmd := exec.Command(dockerBinary, "pull", "scratch")
|
||||
if out, _, err := runCommandWithOutput(pullCmd); err != nil {
|
||||
t.Fatal("pulling the scratch image from has failed: %s, %v", out, err)
|
||||
t.Fatalf("pulling the scratch image from has failed: %s, %v", out, err)
|
||||
}
|
||||
|
||||
eventsCmd := exec.Command(dockerBinary, "events",
|
||||
|
|
|
@ -11,7 +11,7 @@ import (
|
|||
func TestNetworkNat(t *testing.T) {
|
||||
iface, err := net.InterfaceByName("eth0")
|
||||
if err != nil {
|
||||
t.Skip("Test not running with `make test`. Interface eth0 not found: %s", err)
|
||||
t.Skipf("Test not running with `make test`. Interface eth0 not found: %s", err)
|
||||
}
|
||||
|
||||
ifaceAddrs, err := iface.Addrs()
|
||||
|
|
Loading…
Reference in a new issue