]> git.ipfire.org Git - thirdparty/systemd.git/blobdiff - src/journal/journal-file.c
treewide: use log_*_errno whenever %m is in the format string
[thirdparty/systemd.git] / src / journal / journal-file.c
index 8a2c0fcac52d7efd3ec666e9b89aa2ae2fec81c4..7858435badfd9bcb870beb3537bb242a884f2058 100644 (file)
@@ -1292,7 +1292,7 @@ void journal_file_post_change(JournalFile *f) {
         __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) {