From 279d3c9cead3a7ffb657fedbab0e2bc90db45667 Mon Sep 17 00:00:00 2001 From: Michal Schmidt Date: Fri, 28 Nov 2014 14:45:55 +0100 Subject: treewide: more log_*_errno() conversions --- src/journal/journalctl.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/journal') diff --git a/src/journal/journalctl.c b/src/journal/journalctl.c index 6077b6e1a2..1fdd7fc5c8 100644 --- a/src/journal/journalctl.c +++ b/src/journal/journalctl.c @@ -1382,7 +1382,7 @@ static int setup_keys(void) { log_info("Generating seed..."); l = loop_read(fd, seed, seed_size, true); if (l < 0 || (size_t) l != seed_size) { - log_error("Failed to read random seed: %s", strerror(EIO)); + log_error_errno(EIO, "Failed to read random seed: %m"); r = -EIO; goto finish; } @@ -1428,14 +1428,14 @@ static int setup_keys(void) { l = loop_write(fd, &h, sizeof(h), false); if (l < 0 || (size_t) l != sizeof(h)) { - log_error("Failed to write header: %s", strerror(EIO)); + log_error_errno(EIO, "Failed to write header: %m"); r = -EIO; goto finish; } l = loop_write(fd, state, state_size, false); if (l < 0 || (size_t) l != state_size) { - log_error("Failed to write state: %s", strerror(EIO)); + log_error_errno(EIO, "Failed to write state: %m"); r = -EIO; goto finish; } -- cgit v1.2.3-54-g00ecf