aboutsummaryrefslogtreecommitdiff
path: root/toys
diff options
context:
space:
mode:
Diffstat (limited to 'toys')
-rw-r--r--toys/other/vmstat.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/toys/other/vmstat.c b/toys/other/vmstat.c
index 4aa2144b..ef560fa9 100644
--- a/toys/other/vmstat.c
+++ b/toys/other/vmstat.c
@@ -66,7 +66,7 @@ static void get_vmstat_proc(struct vmstat_proc *vmstat_proc)
continue;
} else p = strafter(file, vmstuff[i]);
if (!p || 1!=sscanf(p, "%"PRIu64"%n", new++, &j))
- error_exit("Bad %sin %s", vmstuff[i], name);
+ error_exit("Bad %sin %s: %s", vmstuff[i], name, p ? p : "");
p += j;
}
free(file);