init: print integer with %d not %s
go_vet (via https://goreportcard.com/report/github.com/linuxkit/linuxkit)
reported:
error: arg resource for printf verb %s of wrong type: int (vet)
@@ -281,7 +281,7 @@ func rlimit(resource int, cur, max uint64) {
lim := unix.Rlimit{Cur: cur, Max: max}
err := unix.Setrlimit(resource, &lim)
if err != nil {
- log.Printf("Failed to set rlimit %s: %v", resource, err)
+ log.Printf("Failed to set rlimit %d: %v", resource, err)
}
}
