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)
Sun, May 12, 4:12 PM
Unknown Object (File)
Wed, May 8, 12:11 PM
Unknown Object (File)
Wed, May 8, 12:08 PM
Unknown Object (File)
Wed, May 8, 12:07 PM
Unknown Object (File)
Wed, May 8, 9:56 AM
Unknown Object (File)
Sat, May 4, 11:54 AM
Unknown Object (File)
Fri, May 3, 4:13 AM
Unknown Object (File)
Apr 17 2024, 6:07 AM
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