projects
/
platform
/
upstream
/
systemd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
92ca4ca
)
core: use %m rather than strerror() where we can
author
Lennart Poettering
<lennart@poettering.net>
Tue, 22 Sep 2015 23:10:47 +0000
(
01:10
+0200)
committer
Lennart Poettering
<lennart@poettering.net>
Tue, 29 Sep 2015 19:08:37 +0000
(21:08 +0200)
src/core/main.c
patch
|
blob
|
history
diff --git
a/src/core/main.c
b/src/core/main.c
index
62bf94b
..
509b650
100644
(file)
--- 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; \
}