Skip to content

Various logging fixlets#39837

Merged
keszybz merged 6 commits intosystemd:mainfrom
yuwata:various-fixlets-for-logging
Nov 22, 2025
Merged

Various logging fixlets#39837
keszybz merged 6 commits intosystemd:mainfrom
yuwata:various-fixlets-for-logging

Conversation

@yuwata
Copy link
Copy Markdown
Member

@yuwata yuwata commented Nov 21, 2025

No description provided.

@github-actions github-actions bot added login util-lib apparmor please-review PR is ready for (re-)review by a maintainer labels Nov 21, 2025
@yuwata yuwata added this to the v259 milestone Nov 21, 2025
@keszybz keszybz added good-to-merge/with-minor-suggestions and removed please-review PR is ready for (re-)review by a maintainer labels Nov 21, 2025
- pam_log_oom() passes ENOMEM rather than -ENOMEM, hence previously
  pam_log_oom() did not return PAM_BUF_ERR.
- We may (mistakenly) pass SYNTHETIC_ERRNO(). Let's gracefully handle that.
- Introduce errno_to_pam_error() helper function.
Currently, the result of pam_debug_syslog_errno() is unused, hence this
does not change anything and may be slightly redundant. But let's follow
our usual coding style.
- Do not use '%m' when errno is not set.
- Do not use pam_syslog_errno() when errno is not set.
- Use pam_debug_syslog_errno() rather than log_debug_errno().
- Use 0 rather than PAM_SUCCESS in the function that returns negative
  errno, though PAM_SUCCESS == 0, hence that does not change any
  behavior.
- Append missing full stop in the log message.
@yuwata yuwata force-pushed the various-fixlets-for-logging branch from 6b5554f to 924081f Compare November 22, 2025 00:44
@yuwata
Copy link
Copy Markdown
Member Author

yuwata commented Nov 22, 2025

@keszybz @YHNdnzj Thank you for the comments. Updated. Setting the green label.

@yuwata yuwata added good-to-merge/waiting-for-ci 👍 PR is good to merge, but CI hasn't passed at time of review. Please merge if you see CI has passed and removed good-to-merge/with-minor-suggestions labels Nov 22, 2025
Copy link
Copy Markdown
Member

@keszybz keszybz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM.

@keszybz keszybz merged commit add1828 into systemd:main Nov 22, 2025
54 of 57 checks passed
@github-actions github-actions bot removed the good-to-merge/waiting-for-ci 👍 PR is good to merge, but CI hasn't passed at time of review. Please merge if you see CI has passed label Nov 22, 2025
@yuwata yuwata deleted the various-fixlets-for-logging branch November 22, 2025 11:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Development

Successfully merging this pull request may close these issues.

3 participants