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)
Mon, Jul 28, 11:35 PM
Unknown Object (File)
Jul 7 2025, 10:19 AM
Unknown Object (File)
Jul 6 2025, 7:01 AM
Unknown Object (File)
Jun 29 2025, 12:27 PM
Unknown Object (File)
Jun 27 2025, 3:34 AM
Unknown Object (File)
Jun 20 2025, 10:42 PM
Unknown Object (File)
Jun 20 2025, 10:41 PM
Unknown Object (File)
Jun 20 2025, 10:27 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