1
0
Fork 0
mirror of https://github.com/moby/moby.git synced 2022-11-09 12:21:53 -05:00

Merge pull request #14661 from LK4D4/vet_warns

Fix some formatting calls
This commit is contained in:
David Calavera 2015-07-15 16:41:18 -07:00
commit cd642973fa
3 changed files with 6 additions and 6 deletions

View file

@ -1550,7 +1550,7 @@ func (devices *DeviceSet) cancelDeferredRemoval(info *DevInfo) error {
}
logrus.Debugf("[devmapper] cancelDeferredRemoval START(%s)", info.Name())
defer logrus.Debugf("[devmapper] cancelDeferredRemoval END(%s)", info.Name)
defer logrus.Debugf("[devmapper] cancelDeferredRemoval END(%s)", info.Name())
devinfo, err := devicemapper.GetInfoWithDeferred(info.Name())

View file

@ -86,22 +86,22 @@ func (s *TagStore) recursiveLoad(address, tmpImageDir string) error {
imageJson, err := ioutil.ReadFile(filepath.Join(tmpImageDir, "repo", address, "json"))
if err != nil {
logrus.Debugf("Error reading json", err)
logrus.Debugf("Error reading json: %v", err)
return err
}
layer, err := os.Open(filepath.Join(tmpImageDir, "repo", address, "layer.tar"))
if err != nil {
logrus.Debugf("Error reading embedded tar", err)
logrus.Debugf("Error reading embedded tar: %v", err)
return err
}
img, err := NewImgJSON(imageJson)
if err != nil {
logrus.Debugf("Error unmarshalling json", err)
logrus.Debugf("Error unmarshalling json: %v", err)
return err
}
if err := image.ValidateID(img.ID); err != nil {
logrus.Debugf("Error validating ID: %s", err)
logrus.Debugf("Error validating ID: %v", err)
return err
}

View file

@ -435,7 +435,7 @@ func TarWithOptions(srcPath string, options *TarOptions) (io.ReadCloser, error)
if include != relFilePath {
skip, err = fileutils.OptimizedMatches(relFilePath, patterns, patDirs)
if err != nil {
logrus.Debugf("Error matching %s", relFilePath, err)
logrus.Debugf("Error matching %s: %v", relFilePath, err)
return err
}
}