summaryrefslogtreecommitdiff
path: root/src/journal/catalog.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/journal/catalog.c')
-rw-r--r--src/journal/catalog.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/journal/catalog.c b/src/journal/catalog.c
index dacf5c50a1..6b195f6920 100644
--- a/src/journal/catalog.c
+++ b/src/journal/catalog.c
@@ -616,7 +616,7 @@ int catalog_list_items(FILE *f, bool oneline, char **items) {
k = sd_id128_from_string(*item, &id);
if (k < 0) {
log_error("Failed to parse id128 '%s': %s",
- *item, strerror(-r));
+ *item, strerror(-k));
if (r < 0)
r = k;
continue;
@@ -626,7 +626,7 @@ int catalog_list_items(FILE *f, bool oneline, char **items) {
if (k < 0) {
log_full(k == -ENOENT ? LOG_NOTICE : LOG_ERR,
"Failed to retrieve catalog entry for '%s': %s",
- *item, strerror(-r));
+ *item, strerror(-k));
if (r < 0)
r = k;
continue;