diff options
author | Lukas Nykryn <lnykryn@redhat.com> | 2013-03-27 10:44:21 +0100 |
---|---|---|
committer | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2013-03-27 12:01:44 -0400 |
commit | 2e8fb7026d3c560194cfe9f83935ce0b16263da0 (patch) | |
tree | 5d2a5fe7aa3ed77b614bee696d5fff7031bcf382 /src | |
parent | 531991b64d1fd28218c48bab364ef8c4e80354fa (diff) |
log: fix error codes handling in catalog_list_items
It does not make sense to print error code from previous loop.
Diffstat (limited to 'src')
-rw-r--r-- | src/journal/catalog.c | 4 |
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; |