chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a78899f
)
sysctl: don't warn if sysctls are gone
author
Lennart Poettering
<lennart@poettering.net>
Tue, 4 Jan 2011 23:05:53 +0000
(
00:05
+0100)
committer
Lennart Poettering
<lennart@poettering.net>
Tue, 4 Jan 2011 23:05:53 +0000
(
00:05
+0100)
src/sysctl.c
patch
|
blob
|
history
diff --git
a/src/sysctl.c
b/src/sysctl.c
index 6b0e9aa3ba0f2971e576135e70f3479f80efa104..38ea2d18bc2a48bcc85b17e17d547c58c7061bf0 100644
(file)
--- a/
src/sysctl.c
+++ b/
src/sysctl.c
@@
-53,7
+53,9
@@
static void apply_sysctl(const char *property, const char *value) {
*n = '/';
if ((r = write_one_line_file(p, value)) < 0) {
- log_warning("Failed to write '%s' to '%s': %s", value, p, strerror(-r));
+
+ log_full(r == -ENOENT ? LOG_DEBUG : LOG_WARNING,
+ "Failed to write '%s' to '%s': %s", value, p, strerror(-r));
if (r != -ENOENT)
exit_code = r;