summaryrefslogtreecommitdiffstats
path: root/src/shared/install.c
diff options
context:
space:
mode:
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2017-05-13 17:26:55 +0200
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2017-05-19 20:24:03 +0200
commit25f027c5efb2a26b2c7cb9a9608eb2bd49cc5ffc (patch)
treea06ce3e12ccf6ada4027bd2f2994ad5727b3658f /src/shared/install.c
parenttree-wide: fix incorrect uses of %m (diff)
downloadsystemd-25f027c5efb2a26b2c7cb9a9608eb2bd49cc5ffc.tar.xz
systemd-25f027c5efb2a26b2c7cb9a9608eb2bd49cc5ffc.zip
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'
Diffstat (limited to 'src/shared/install.c')
-rw-r--r--src/shared/install.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/shared/install.c b/src/shared/install.c
index 58c8e852b2..7f3bc0d813 100644
--- a/src/shared/install.c
+++ b/src/shared/install.c
@@ -3045,7 +3045,7 @@ int unit_file_get_list(
if (errno == ENOENT)
continue;
if (IN_SET(errno, ENOTDIR, EACCES)) {
- log_debug("Failed to open \"%s\": %m", *i);
+ log_debug_errno(errno, "Failed to open \"%s\": %m", *i);
continue;
}