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
/
journal-file.c
diff --git
a/src/journal/journal-file.c
b/src/journal/journal-file.c
index 8a2c0fcac52d7efd3ec666e9b89aa2ae2fec81c4..7858435badfd9bcb870beb3537bb242a884f2058 100644
(file)
--- a/
src/journal/journal-file.c
+++ b/
src/journal/journal-file.c
@@
-1292,7
+1292,7
@@
void journal_file_post_change(JournalFile *f) {
__sync_synchronize();
if (ftruncate(f->fd, f->last_stat.st_size) < 0)
__sync_synchronize();
if (ftruncate(f->fd, f->last_stat.st_size) < 0)
- log_error
(
"Failed to truncate file to its own size: %m");
+ log_error
_errno(errno,
"Failed to truncate file to its own size: %m");
}
static int entry_item_cmp(const void *_a, const void *_b) {
}
static int entry_item_cmp(const void *_a, const void *_b) {