diff options
author | Lennart Poettering <lennart@poettering.net> | 2011-01-05 00:05:53 +0100 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2011-01-05 00:05:53 +0100 |
commit | 5707631ec6ef3b5731825f3fd52ccbecbf12c073 (patch) | |
tree | bd70b38d1336095c8f3671635ef30ebabd82c6ba | |
parent | a78899f541b944dd02fe581b1c3230eadccad1ba (diff) |
sysctl: don't warn if sysctls are gone
-rw-r--r-- | src/sysctl.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/sysctl.c b/src/sysctl.c index 6b0e9aa3ba..38ea2d18bc 100644 --- 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; |