freebsd-skq/usr.bin/vmstat
Andrew Turner 15221c552b 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
2021-04-11 10:58:46 +00: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-04-11 10:58:46 +00:00