intel / ledmon

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

[ENHANCEMENT] Unify messaging for non-existent and not supported devices. #213

Closed mku514k closed 7 months ago

mku514k commented 8 months ago

Description

As for now, if ledctl is run with unsupported device, it returns:

ledctl: /dev/urandom: device not supported ledctl: IBPI LOCATE: missing block device(s)... pattern ignored.

...but for devices that do not exist, it just returns:

ledctl: IBPI LOCATE: missing block device(s)... pattern ignored.

For consistency, an error message about device not existing needs to be added.

Reason

Internal discussion. Consistency in behavior.

Environment

-- not relevant --

mku514k commented 7 months ago

PR merged, closing.