analyze: add some logging to some error cases

This commit is contained in:
Lennart Poettering 2017-12-26 16:01:14 +01:00
parent f72b7018d2
commit 8efbce138a
1 changed files with 3 additions and 3 deletions

View File

@ -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, &times[i]);
if (r < 0)
return r;
return log_error_errno(r, "Failed to add entry to hashmap: %m");
}
unit_times_hashmap = h;