summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2015-09-23 01:10:47 +0200
committerLennart Poettering <lennart@poettering.net>2015-09-29 21:08:37 +0200
commitd1cefe0ae29ce95b13157757913b494d89912b95 (patch)
tree15b16a2f62597c935a347158109b8be5f870b89f
parent92ca4cac43055689696ea63ca7b7225e85707040 (diff)
core: use %m rather than strerror() where we can
-rw-r--r--src/core/main.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/core/main.c b/src/core/main.c
index 62bf94b7cb..509b650395 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; \
}