aboutsummaryrefslogtreecommitdiff
path: root/toys/other
diff options
context:
space:
mode:
authorRob Landley <rob@landley.net>2018-03-23 19:32:49 -0500
committerRob Landley <rob@landley.net>2018-03-23 19:32:49 -0500
commit3fed6c84e76f2df4060d107280cc29607e617689 (patch)
treec6de5062b67ead0996abfe76bcdb6bfb3a831d1e /toys/other
parent7fe1c73cf9406c832474dba5352e6096b86b3ebf (diff)
downloadtoybox-3fed6c84e76f2df4060d107280cc29607e617689.tar.gz
Add the extra info we've got back to the error message.
Diffstat (limited to 'toys/other')
-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);