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:
Lennart Poettering 2018-01-22 15:29:30 +01:00
parent 47925d7f32
commit ecc1709c2c

View file

@ -547,11 +547,8 @@ static int dir_cleanup(
continue; continue;
/* FUSE, NFS mounts, SELinux might return EACCES */ /* FUSE, NFS mounts, SELinux might return EACCES */
if (errno == EACCES) r = log_full_errno(errno == EACCES ? LOG_DEBUG : LOG_ERR, errno,
log_debug_errno(errno, "stat(%s/%s) failed: %m", p, dent->d_name); "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;
continue; continue;
} }