chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
logind: remove spurious include of <sys/capability.h>
[elogind.git]
/
src
/
journal-remote
/
journal-remote-write.c
diff --git
a/src/journal-remote/journal-remote-write.c
b/src/journal-remote/journal-remote-write.c
index 0139f851a56c0069a6307e7e7f4e580cdde9f3c4..df30049397dd0149106355d1d97baadeac9f3043 100644
(file)
--- a/
src/journal-remote/journal-remote-write.c
+++ b/
src/journal-remote/journal-remote-write.c
@@
-59,11
+59,9
@@
static int do_rotate(JournalFile **f, bool compress, bool seal) {
int r = journal_file_rotate(f, compress, seal);
if (r < 0) {
if (*f)
int r = journal_file_rotate(f, compress, seal);
if (r < 0) {
if (*f)
- log_error("Failed to rotate %s: %s", (*f)->path,
- strerror(-r));
+ log_error_errno(r, "Failed to rotate %s: %m", (*f)->path);
else
else
- log_error("Failed to create rotated journal: %s",
- strerror(-r));
+ log_error_errno(r, "Failed to create rotated journal: %m");
}
return r;
}
return r;
@@
-153,7
+151,7
@@
int writer_write(Writer *w,
return 1;
}
return 1;
}
- log_debug
("%s: Write failed, rotating: %s", w->journal->path, strerror(-r)
);
+ log_debug
_errno(r, "%s: Write failed, rotating: %m", w->journal->path
);
r = do_rotate(&w->journal, compress, seal);
if (r < 0)
return r;
r = do_rotate(&w->journal, compress, seal);
if (r < 0)
return r;