Page MenuHomeFreeBSD

Use if ... else when printing memory attributes
ClosedPublic

Authored by andrew on Apr 11 2021, 11:41 AM.
Tags
None
Referenced Files
Unknown Object (File)
Wed, Apr 17, 6:07 AM
Unknown Object (File)
Tue, Apr 2, 5:42 AM
Unknown Object (File)
Mar 16 2024, 12:02 AM
Unknown Object (File)
Mar 16 2024, 12:02 AM
Unknown Object (File)
Mar 16 2024, 12:02 AM
Unknown Object (File)
Mar 12 2024, 4:19 AM
Unknown Object (File)
Jan 14 2024, 7:32 AM
Unknown Object (File)
Jan 4 2024, 5:59 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