diff options
author | Alfred Perlstein <alfred@FreeBSD.org> | 2001-02-22 13:55:12 +0000 |
---|---|---|
committer | Alfred Perlstein <alfred@FreeBSD.org> | 2001-02-22 13:55:12 +0000 |
commit | 3cf714fef8721dd138916ff001b896d1a71fecf5 (patch) | |
tree | 262d2eebb0f21d73877e0cdb1ebd2844cbf3e2ea /usr.bin/vmstat | |
parent | c978f49e205ac42c7068a40e085d52b90888386d (diff) | |
download | src-3cf714fef8721dd138916ff001b896d1a71fecf5.tar.gz src-3cf714fef8721dd138916ff001b896d1a71fecf5.zip |
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
Notes
Notes:
svn path=/head/; revision=72887
Diffstat (limited to 'usr.bin/vmstat')
-rw-r--r-- | usr.bin/vmstat/vmstat.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/usr.bin/vmstat/vmstat.c b/usr.bin/vmstat/vmstat.c index 1b2d159545b5..7b727a89c857 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); } |