From: Lennart Poettering Date: Tue, 4 Jan 2011 23:05:53 +0000 (+0100) Subject: sysctl: don't warn if sysctls are gone X-Git-Tag: v16~19 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5707631ec6ef3b5731825f3fd52ccbecbf12c073;p=systemd sysctl: don't warn if sysctls are gone --- diff --git a/src/sysctl.c b/src/sysctl.c index 6b0e9aa3..38ea2d18 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;