diff options
Diffstat (limited to 'src/shared/logs-show.c')
-rw-r--r-- | src/shared/logs-show.c | 8 |
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; } } |