tmpfiles: fold five lines into two
log_full_errno() has all these nice benefits, let's make use of them to shorten five lines into two.
This commit is contained in:
parent
47925d7f32
commit
ecc1709c2c
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue