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; \ }