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/binfmt/binfmt.c | |
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/binfmt/binfmt.c')
-rw-r--r-- | src/binfmt/binfmt.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/binfmt/binfmt.c b/src/binfmt/binfmt.c index 0399ab75e0..788fd4b1a4 100644 --- a/src/binfmt/binfmt.c +++ b/src/binfmt/binfmt.c @@ -40,7 +40,7 @@ static int delete_rule(const char *rule) { assert(rule[0]); if (!(x = strdup(rule))) - return -ENOMEM; + return log_oom(); e = strchrnul(x+1, x[0]); *e = 0; @@ -49,7 +49,7 @@ static int delete_rule(const char *rule) { free(x); if (!fn) - return -ENOMEM; + return log_oom(); r = write_one_line_file(fn, "-1"); free(fn); |