Use upsdebug_with_errno()
instead of a few cases calling upsdebugx(..., errno, strerror())
explicitly
#2396
Labels
enhancement
Low-hanging fruit
A proposal or issue that is good for newcomers to codebase or otherwise a quick win
refactor/fightwarn
PR or issue proposal to improve code maintainability without functional changes, or to fix warnings
Milestone
We have a nice helper method and a handful of places that can be made more simple with this change.
Single-line hits are easy to find with
git grep
(there may be more with multi-line code involved):(Note we have quite a few helpers like
nut_usb_strerror
,shut_strerror
,modbus_strerror
... which do not easily fall into this cleanup's targets, but might benefit from similar helpers).The text was updated successfully, but these errors were encountered: