projects
/
platform
/
upstream
/
systemd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
47925d7
)
tmpfiles: fold five lines into two
author
Lennart Poettering
<lennart@poettering.net>
Mon, 22 Jan 2018 14:29:30 +0000
(15:29 +0100)
committer
Lennart Poettering
<lennart@poettering.net>
Mon, 22 Jan 2018 14:30:05 +0000
(15:30 +0100)
log_full_errno() has all these nice benefits, let's make use of them to
shorten five lines into two.
src/tmpfiles/tmpfiles.c
patch
|
blob
|
history
diff --git
a/src/tmpfiles/tmpfiles.c
b/src/tmpfiles/tmpfiles.c
index
96ffa42
..
66dabc7
100644
(file)
--- a/
src/tmpfiles/tmpfiles.c
+++ b/
src/tmpfiles/tmpfiles.c
@@
-547,11
+547,8
@@
static int dir_cleanup(
continue;
/* FUSE, NFS mounts, SELinux might return EACCES */
- if (errno == EACCES)
- log_debug_errno(errno, "stat(%s/%s) failed: %m", p, dent->d_name);
- else
- log_error_errno(errno, "stat(%s/%s) failed: %m", p, dent->d_name);
- r = -errno;
+ r = log_full_errno(errno == EACCES ? LOG_DEBUG : LOG_ERR, errno,
+ "stat(%s/%s) failed: %m", p, dent->d_name);
continue;
}