From 1421211924ff05af3b0c0d52f1c84472d0307456 Mon Sep 17 00:00:00 2001 From: Shawn Landden Date: Fri, 3 Aug 2012 17:22:09 -0700 Subject: 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. --- src/binfmt/binfmt.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/binfmt') 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); -- cgit v1.2.3-54-g00ecf