1
0
mirror of https://github.com/systemd/systemd.git synced 2024-11-08 11:27:32 +03:00
systemd/src/console
Michal Schmidt 56f64d9576 treewide: use log_*_errno whenever %m is in the format string
If the format string contains %m, clearly errno must have a meaningful
value, so we might as well use log_*_errno to have ERRNO= logged.

Using:
find . -name '*.[ch]' | xargs sed -r -i -e \
's/log_(debug|info|notice|warning|error|emergency)\((".*%m.*")/log_\1_errno(errno, \2/'

Plus some whitespace, linewrap, and indent adjustments.
2014-11-28 19:49:27 +01:00
..
consoled-display.c console: add user console daemon 2014-10-03 16:07:14 +02:00
consoled-manager.c treewide: simplify log_*_errno(r,...) immediately followed by "return r" 2014-11-28 17:34:26 +01:00
consoled-session.c treewide: more log_*_errno() conversions, multiline calls 2014-11-28 17:17:51 +01:00
consoled-terminal.c treewide: use log_*_errno whenever %m is in the format string 2014-11-28 19:49:27 +01:00
consoled-workspace.c console: add user console daemon 2014-10-03 16:07:14 +02:00
consoled.c treewide: no need to negate errno for log_*_errno() 2014-11-28 13:29:21 +01:00
consoled.h console: add user console daemon 2014-10-03 16:07:14 +02:00
Makefile console: add user console daemon 2014-10-03 16:07:14 +02:00