diff options
author | Shawn Landden <shawnlandden@gmail.com> | 2012-08-03 17:22:09 -0700 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2012-08-06 16:37:01 +0200 |
commit | 1421211924ff05af3b0c0d52f1c84472d0307456 (patch) | |
tree | 6cf96db91fd478f3b281a5b11fb0214a1fc1e613 /src/cgtop | |
parent | 8230e26dc954a40d8c9dbc8ddd9376117021f9d2 (diff) |
continue work with error messages, log_oom()
Adds messages for formally silent errors: new "Failed on cmdline argument %s: %s".
Removes some specific error messages for -ENOMEM in mount-setup.c. A few specific
ones have been left in other binaries.
Diffstat (limited to 'src/cgtop')
-rw-r--r-- | src/cgtop/cgtop.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/cgtop/cgtop.c b/src/cgtop/cgtop.c index a57a468b2c..3756328fa7 100644 --- a/src/cgtop/cgtop.c +++ b/src/cgtop/cgtop.c @@ -782,5 +782,10 @@ finish: group_hashmap_free(a); group_hashmap_free(b); - return r < 0 ? EXIT_FAILURE : EXIT_SUCCESS; + if (r < 0) { + log_error("Exiting with failure: %s", strerror(-r)); + return EXIT_FAILURE; + } + + return EXIT_SUCCESS; } |