chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
treewide: use log_*_errno whenever %m is in the format string
[elogind.git]
/
src
/
journal
/
coredump-vacuum.c
diff --git
a/src/journal/coredump-vacuum.c
b/src/journal/coredump-vacuum.c
index fec901e8e44f2dddf845eb86c9bf398033bffa0a..5f2ff2a02522f0b5fe6fa61c0ffb8a23ac59412b 100644
(file)
--- a/
src/journal/coredump-vacuum.c
+++ b/
src/journal/coredump-vacuum.c
@@
-140,7
+140,7
@@
int coredump_vacuum(int exclude_fd, off_t keep_free, off_t max_use) {
if (exclude_fd >= 0) {
if (fstat(exclude_fd, &exclude_st) < 0) {
if (exclude_fd >= 0) {
if (fstat(exclude_fd, &exclude_st) < 0) {
- log_error
(
"Failed to fstat(): %m");
+ log_error
_errno(errno,
"Failed to fstat(): %m");
return -errno;
}
}
return -errno;
}
}
@@
-156,7
+156,7
@@
int coredump_vacuum(int exclude_fd, off_t keep_free, off_t max_use) {
if (errno == ENOENT)
return 0;
if (errno == ENOENT)
return 0;
- log_error
(
"Can't open coredump directory: %m");
+ log_error
_errno(errno,
"Can't open coredump directory: %m");
return -errno;
}
return -errno;
}
@@
-258,7
+258,7
@@
int coredump_vacuum(int exclude_fd, off_t keep_free, off_t max_use) {
if (errno == ENOENT)
continue;
if (errno == ENOENT)
continue;
- log_error
(
"Failed to remove file %s: %m", worst->oldest_file);
+ log_error
_errno(errno,
"Failed to remove file %s: %m", worst->oldest_file);
return -errno;
} else
log_info("Removed old coredump %s.", worst->oldest_file);
return -errno;
} else
log_info("Removed old coredump %s.", worst->oldest_file);
@@
-267,6
+267,6
@@
int coredump_vacuum(int exclude_fd, off_t keep_free, off_t max_use) {
return 0;
fail:
return 0;
fail:
- log_error
(
"Failed to read directory: %m");
+ log_error
_errno(errno,
"Failed to read directory: %m");
return -errno;
}
return -errno;
}