1
1
mirror of https://github.com/systemd/systemd-stable.git synced 2024-10-28 11:55:23 +03:00

sysctl: bump loglevel when attempting to write invalid values

This commit is contained in:
Jan Synacek 2015-08-04 15:46:34 +02:00
parent ee80b4b297
commit 9bcfdd74fc

View File

@ -51,7 +51,7 @@ static int apply_all(Hashmap *sysctl_options) {
k = sysctl_write(property, value);
if (k < 0) {
log_full_errno(k == -ENOENT ? LOG_DEBUG : LOG_WARNING, k,
log_full_errno(k == -ENOENT ? LOG_INFO : LOG_WARNING, k,
"Failed to write '%s' to '%s': %m", value, property);
if (r == 0 && k != -ENOENT)