summaryrefslogtreecommitdiffstats
path: root/usr.bin/vmstat
diff options
context:
space:
mode:
authoralfred <alfred@FreeBSD.org>2001-02-22 13:55:12 +0000
committeralfred <alfred@FreeBSD.org>2001-02-22 13:55:12 +0000
commit3956d542bf2c23718f12d25e0c4e171a8db27ab8 (patch)
treeb6bb35153b5fe31868a9c34e301e300fbd59ba85 /usr.bin/vmstat
parente5173c046ad9705b566cd017e8f18d78bd6d9b78 (diff)
downloadFreeBSD-src-3956d542bf2c23718f12d25e0c4e171a8db27ab8.zip
FreeBSD-src-3956d542bf2c23718f12d25e0c4e171a8db27ab8.tar.gz
fix usage statement (add missing [-n devs] option)
Submitted by: Maxim Konovalov <maxim@macomnet.ru> Silence a warning by renaming the 'pgtok' #define to 'vmstat_pgtok' so as not to conflict with the 'pgtok' #define in sys/param.h
Diffstat (limited to 'usr.bin/vmstat')
-rw-r--r--usr.bin/vmstat/vmstat.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/usr.bin/vmstat/vmstat.c b/usr.bin/vmstat/vmstat.c
index 1b2d159..7b727a8 100644
--- a/usr.bin/vmstat/vmstat.c
+++ b/usr.bin/vmstat/vmstat.c
@@ -479,10 +479,10 @@ dovmstat(interval, reps)
}
(void)printf("%2d%2d%2d",
total.t_rq - 1, total.t_dw + total.t_pw, total.t_sw);
-#define pgtok(a) ((a) * sum.v_page_size >> 10)
+#define vmstat_pgtok(a) ((a) * sum.v_page_size >> 10)
#define rate(x) (((x) + halfuptime) / uptime) /* round */
(void)printf("%8ld%6ld ",
- (long)pgtok(total.t_avm), (long)pgtok(total.t_free));
+ (long)vmstat_pgtok(total.t_avm), (long)vmstat_pgtok(total.t_free));
(void)printf("%4lu ",
(u_long)rate(sum.v_vm_faults - osum.v_vm_faults));
(void)printf("%3lu ",
@@ -920,7 +920,8 @@ kread(nlx, addr, size)
void
usage()
{
- (void)fprintf(stderr,
-"usage: vmstat [-imsz] [-c count] [-M core] [-N system] [-w wait] [disks]\n");
+ (void)fprintf(stderr, "%s%s",
+ "usage: vmstat [-imsz] [-c count] [-M core] [-N system] [-w wait]\n",
+ " [-n devs] [disks]\n");
exit(1);
}
OpenPOWER on IntegriCloud