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
This commit is contained in:
parent
c978f49e20
commit
3cf714fef8
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user