]> git.ipfire.org Git - thirdparty/systemd.git/commit - src/shared/install.c
tree-wide: when %m is used in log_*, always specify errno explicitly
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Sat, 13 May 2017 15:26:55 +0000 (11:26 -0400)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Fri, 19 May 2017 18:24:03 +0000 (14:24 -0400)
commit25f027c5efb2a26b2c7cb9a9608eb2bd49cc5ffc
treea06ce3e12ccf6ada4027bd2f2994ad5727b3658f
parent35bca925f9bf78df3f64e321ab4830936fcef662
tree-wide: when %m is used in log_*, always specify errno explicitly

All those uses were correct, but I think it's better to be explicit.
Using implicit errno is too error prone, and with this change we can require
(in the sense of a style guideline) that the code is always specified.

Helpful query: git grep -n -P 'log_[^s][a-z]+\(.*%m'
12 files changed:
src/basic/selinux-util.c
src/core/cgroup.c
src/core/main.c
src/libsystemd-network/sd-dhcp-client.c
src/libsystemd/sd-device/device-enumerator.c
src/libsystemd/sd-device/sd-device.c
src/libudev/libudev-monitor.c
src/shared/install.c
src/stdio-bridge/stdio-bridge.c
src/test/test-nss.c
src/tmpfiles/tmpfiles.c
src/udev/udev-rules.c