Page MenuHomeFreeBSD

Use if ... else when printing memory attributes
ClosedPublic

Authored by andrew on Apr 11 2021, 11:41 AM.
Tags
None
Referenced Files
F153018280: D29703.id.diff
Sat, Apr 18, 4:04 PM
Unknown Object (File)
Thu, Apr 16, 11:20 PM
Unknown Object (File)
Mon, Apr 13, 4:40 PM
Unknown Object (File)
Sat, Apr 11, 10:11 PM
Unknown Object (File)
Tue, Apr 7, 4:40 PM
Unknown Object (File)
Fri, Mar 27, 6:35 AM
Unknown Object (File)
Thu, Mar 26, 8:19 PM
Unknown Object (File)
Wed, Mar 25, 4:13 PM
Subscribers

Details

Summary

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.

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 38497
Build 35386: arc lint + arc unit