summaryrefslogtreecommitdiff
path: root/src/shared/logs-show.c
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2015-04-21 18:05:44 +0200
committerLennart Poettering <lennart@poettering.net>2015-04-21 18:05:44 +0200
commit10a8700606d832ba88706f35e63d37b98c409d10 (patch)
tree4ed4eb6a3ab3658a5e2215ee4e4d8bc098b04f8a /src/shared/logs-show.c
parent8519d8f58ec3c5f8488be0ee557a30c21b1d0616 (diff)
tree-wide: get rid of more strerror() calls
Diffstat (limited to 'src/shared/logs-show.c')
-rw-r--r--src/shared/logs-show.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/shared/logs-show.c b/src/shared/logs-show.c
index 27f407229f..54179e94c9 100644
--- a/src/shared/logs-show.c
+++ b/src/shared/logs-show.c
@@ -409,8 +409,8 @@ static int output_verbose(
if (r == -ENOENT)
log_debug("Source realtime timestamp not found");
else if (r < 0) {
- log_full(r == -EADDRNOTAVAIL ? LOG_DEBUG : LOG_ERR,
- "Failed to get source realtime timestamp: %s", strerror(-r));
+ log_full_errno(r == -EADDRNOTAVAIL ? LOG_DEBUG : LOG_ERR, r,
+ "Failed to get source realtime timestamp: %m");
return r;
} else {
_cleanup_free_ char *value = NULL;
@@ -429,8 +429,8 @@ static int output_verbose(
if (r < 0) {
r = sd_journal_get_realtime_usec(j, &realtime);
if (r < 0) {
- log_full(r == -EADDRNOTAVAIL ? LOG_DEBUG : LOG_ERR,
- "Failed to get realtime timestamp: %s", strerror(-r));
+ log_full_errno(r == -EADDRNOTAVAIL ? LOG_DEBUG : LOG_ERR, r,
+ "Failed to get realtime timestamp: %m");
return r;
}
}