use glog.Warningf when a format string is passed

This commit is contained in:
Cao Shufeng 2017-06-21 16:22:34 +08:00
parent f3d900b148
commit 85477fe544

View File

@ -80,7 +80,7 @@ func parseThinLsOutput(output []byte) map[string]uint64 {
deviceID := fields[0] deviceID := fields[0]
usage, err := strconv.ParseUint(fields[1], 10, 64) usage, err := strconv.ParseUint(fields[1], 10, 64)
if err != nil { if err != nil {
glog.Warning("unexpected error parsing thin_ls output: %v", err) glog.Warningf("unexpected error parsing thin_ls output: %v", err)
continue continue
} }