diff options
author | Lennart Poettering <lennart@poettering.net> | 2017-12-26 16:01:14 +0100 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2017-12-26 16:04:10 +0100 |
commit | 8efbce138ab5d43ee002bba2064118a72daaf9f4 (patch) | |
tree | de1af4f086e273d7079cf1c34098c2f27798845d /src/analyze | |
parent | f72b7018d2828ae617c2a6001d088c6e6cd93294 (diff) | |
download | systemd-8efbce138ab5d43ee002bba2064118a72daaf9f4.tar.gz |
analyze: add some logging to some error cases
Diffstat (limited to 'src/analyze')
-rw-r--r-- | src/analyze/analyze.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/analyze/analyze.c b/src/analyze/analyze.c index 16eba2d90f..ec2504a1c0 100644 --- a/src/analyze/analyze.c +++ b/src/analyze/analyze.c @@ -1007,12 +1007,12 @@ static int analyze_critical_chain(int argc, char *argv[], void *userdata) { h = hashmap_new(&string_hash_ops); if (!h) - return -ENOMEM; + return log_oom(); - for (i = 0; i < (unsigned)n; i++) { + for (i = 0; i < (unsigned) n; i++) { r = hashmap_put(h, times[i].name, ×[i]); if (r < 0) - return r; + return log_error_errno(r, "Failed to add entry to hashmap: %m"); } unit_times_hashmap = h; |