intel / ledmon

Enclosure LED Utilities
GNU General Public License v2.0
72 stars 44 forks source link

Add struct for mapping ibpi statuses to strings. #211

Closed mtkaczyk closed 2 months ago

mtkaczyk commented 3 months ago

This is done different way in multiple places. Add one structure to lib and make in commonly used. Differentiate input values and logged values, not all patterns can be set but all patterns should be logged.

This simplifies implementation, there is no need to handle temporary buf strings for generating "(unknown: %d)" messages.

Fixes #198