mirror of
https://github.com/systemd/systemd.git
synced 2024-12-23 21:35:11 +03:00
core: use %m rather than strerror() where we can
This commit is contained in:
parent
92ca4cac43
commit
d1cefe0ae2
@ -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; \
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user