From 9d8ec418a723bc3eabfaece1b5414eaa794f3224 Mon Sep 17 00:00:00 2001 From: phk Date: Mon, 20 Oct 2003 20:13:50 +0000 Subject: When a numeric field overflows its width, try formatting the number in 'kilo' or 'mega' with appropriate suffix instead of filling the field with stars. --- usr.bin/systat/devs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'usr.bin/systat/devs.c') diff --git a/usr.bin/systat/devs.c b/usr.bin/systat/devs.c index 309253e..d37cf2d 100644 --- a/usr.bin/systat/devs.c +++ b/usr.bin/systat/devs.c @@ -138,7 +138,7 @@ dsinit(int maxshowdevs, struct statinfo *s1, struct statinfo *s2 __unused, if (devstat_selectdevs(&dev_select, &num_selected, &num_selections, &select_generation, generation, s1->dinfo->devices, num_devices, NULL, 0, NULL, 0, DS_SELECT_ADD, maxshowdevs, 0) == -1) - errx(1, "%s", devstat_errbuf); + errx(1, "%d %s", __LINE__, devstat_errbuf); return(1); } -- cgit v1.1