Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

clients/, common/, drivers/: refactor debug/log strerror to helper funcs #2631

Merged
merged 1 commit into from
Sep 23, 2024

Conversation

desertwitch
Copy link
Contributor

@desertwitch desertwitch commented Sep 15, 2024

had some time to kill on public transportation and did some more detective work, refactors all found occurrences of non-specific strerror functions into their respective helper functions upslog_with_errno() and upsdebug_with_errno()

addresses and possibly fixes #2396

@desertwitch
Copy link
Contributor Author

desertwitch commented Sep 15, 2024

(8f10093) Whoops, missed that %s, interesting my system did not complain...

common/common.c Outdated Show resolved Hide resolved
@jimklimov jimklimov added enhancement refactor/fightwarn PR or issue proposal to improve code maintainability without functional changes, or to fix warnings impacts-release-2.8.2 Issues reported against NUT release 2.8.2 (maybe vanilla or with minor packaging tweaks) labels Sep 22, 2024
@jimklimov jimklimov added this to the 2.8.3 milestone Sep 22, 2024
drivers/riello_usb.c Show resolved Hide resolved
@jimklimov
Copy link
Member

@desertwitch : what's with the force-pushes, they seem to bring no new diff... rebases over current target? typos in commit comments?

Should I wait before merging? :)

@desertwitch
Copy link
Contributor Author

desertwitch commented Sep 23, 2024

@desertwitch : what's with the force-pushes, they seem to bring no new diff... rebases over current target? typos in commit comments?

Should I wait before merging? :)

Just squashing/cleaning up before merge, good to go now.
Commit message referenced common/ but no changes there (anymore).

@jimklimov jimklimov merged commit 7dbf605 into networkupstools:master Sep 23, 2024
30 checks passed
@desertwitch desertwitch deleted the strerror-to-helper branch September 23, 2024 17:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement impacts-release-2.8.2 Issues reported against NUT release 2.8.2 (maybe vanilla or with minor packaging tweaks) refactor/fightwarn PR or issue proposal to improve code maintainability without functional changes, or to fix warnings
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Use upsdebug_with_errno() instead of a few cases calling upsdebugx(..., errno, strerror()) explicitly
2 participants