From: Lennart Poettering Date: Tue, 22 Sep 2015 23:10:47 +0000 (+0200) Subject: core: use %m rather than strerror() where we can X-Git-Tag: v227~62^2~48 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=d1cefe0ae29ce95b13157757913b494d89912b95;p=thirdparty%2Fsystemd.git core: use %m rather than strerror() where we can --- diff --git a/src/core/main.c b/src/core/main.c index 62bf94b7cbb..509b650395b 100644 --- a/src/core/main.c +++ b/src/core/main.c @@ -410,9 +410,9 @@ static int parse_proc_cmdline_item(const char *key, const char *value) { \ r = func(rvalue); \ if (r < 0) \ - log_syntax(unit, LOG_ERR, filename, line, -r, \ - "Invalid " descr "'%s': %s", \ - rvalue, strerror(-r)); \ + log_syntax(unit, LOG_ERR, filename, line, r, \ + "Invalid " descr "'%s': %m", \ + rvalue); \ \ return 0; \ }