metadata: print Entry objects with %+v not %s
go_vet (via https://goreportcard.com/report/github.com/linuxkit/linuxkit)
reported:
error: arg current for printf verb %s of wrong type: main.Entry (vet)
For each of these.
@@ -165,7 +165,7 @@ func writeConfigFiles(target string, current Entry) {
if isFile(current) {
filemode, err := parseFileMode(current.Perm, 0644)
if err != nil {
- log.Printf("Failed to parse permission %s: %s", current, err)
+ log.Printf("Failed to parse permission %+v: %s", current, err)
return
}
if err := ioutil.WriteFile(target, []byte(*current.Content), filemode); err != nil {
@@ -175,7 +175,7 @@ func writeConfigFiles(target string, current Entry) {
} else if isDirectory(current) {
filemode, err := parseFileMode(current.Perm, 0755)
if err != nil {
- log.Printf("Failed to parse permission %s: %s", current, err)
+ log.Printf("Failed to parse permission %+v: %s", current, err)
return
}
if err := os.MkdirAll(target, filemode); err != nil {
