1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-10-18 02:19:39 +00:00
freebsd/usr.bin/vmstat
Andrew Turner a0dd2317e8 Use if ... else when printing memory attributes
In vmstat there is a switch statement that converts these attributes to
a string. As some values can be duplicate we have to hide these from
userspace.

Replace this switch statement with an if ... else macro that lets us
repeat values without a compiler error.

Reviewed by:	kib
MFC after:	2 weeks
Sponsored by:	ABT Systems Ltd
Differential Revision:	https://reviews.freebsd.org/D29703

(cherry picked from commit 15221c552b)
2021-06-12 02:21:12 +01:00
..
tests vmstat(8): Hook up NetBSD tests 2018-01-11 16:04:04 +00:00
Makefile vmstat(1): various nits 2018-06-13 08:52:04 +00:00
Makefile.depend
vmstat.8 Describe the value in the 're' column of vmstat(8) in terms of freebsd's vm 2020-07-26 18:33:29 +00:00
vmstat.c Use if ... else when printing memory attributes 2021-06-12 02:21:12 +01:00