Page MenuHomeFreeBSD

Use if ... else when printing memory attributes
ClosedPublic

Authored by andrew on Apr 11 2021, 11:41 AM.
Tags
None
Referenced Files
F109446588: D29703.id87248.diff
Wed, Feb 5, 4:28 AM
Unknown Object (File)
Thu, Jan 30, 4:11 PM
Unknown Object (File)
Thu, Jan 30, 2:25 PM
Unknown Object (File)
Mon, Jan 27, 1:54 PM
Unknown Object (File)
Sun, Jan 26, 11:23 PM
Unknown Object (File)
Fri, Jan 24, 2:49 AM
Unknown Object (File)
Dec 8 2024, 9:58 AM
Unknown Object (File)
Dec 5 2024, 6:35 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