[lvc-project] [PATCH v2] hwmon: (asus-ec-sensors) add WARN_ONCE() on invalid sensor index
Eugene Shalygin
eugene.shalygin at gmail.com
Tue Apr 29 14:30:09 MSK 2025
> If this is seen, it is an implementation error which needs to be fixed.
> Returning an error to userspace will leave users annoyed but will not
> result in a fix. The warning backtrace is warranted in this situation.
Thanks for the explanation! I'm still not convinced that such a
generic error message (without the type and channel) can be of great
help. Something serious needs to happen to trigger this error, like a
hardware change, or a RAM failure... If the purpose of the message is
only to grab attention, it could say that explicitly. But anyway,
Reviewed-by: Eugene Shalygin <eugene.shalygin at gmail.com>
Eugene
More information about the lvc-project
mailing list