diff options
author | Yu Watanabe <watanabe.yu+github@gmail.com> | 2020-09-10 06:52:27 +0200 |
---|---|---|
committer | Yu Watanabe <watanabe.yu+github@gmail.com> | 2020-09-10 06:59:04 +0200 |
commit | 8add8b508d2838dbc25649f6b4345922f1c896c4 (patch) | |
tree | 81f864a4b4327df962523368be4122d0d11d40a6 /src/shared/vlan-util.c | |
parent | ethtool: downgrade log level when the error will be ignored (diff) | |
download | systemd-8add8b508d2838dbc25649f6b4345922f1c896c4.tar.xz systemd-8add8b508d2838dbc25649f6b4345922f1c896c4.zip |
vlan: downgrade error level if the error will be ignored
Diffstat (limited to 'src/shared/vlan-util.c')
-rw-r--r-- | src/shared/vlan-util.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/shared/vlan-util.c b/src/shared/vlan-util.c index a4b42df85b..180f56ede8 100644 --- a/src/shared/vlan-util.c +++ b/src/shared/vlan-util.c @@ -86,11 +86,13 @@ int config_parse_vlanid( r = parse_vlanid(rvalue, id); if (r == -ERANGE) { - log_syntax(unit, LOG_ERR, filename, line, r, "VLAN identifier outside of valid range 0…4094, ignoring: %s", rvalue); + log_syntax(unit, LOG_WARNING, filename, line, r, + "VLAN identifier outside of valid range 0…4094, ignoring: %s", rvalue); return 0; } if (r < 0) { - log_syntax(unit, LOG_ERR, filename, line, r, "Failed to parse VLAN identifier value, ignoring: %s", rvalue); + log_syntax(unit, LOG_WARNING, filename, line, r, + "Failed to parse VLAN identifier value, ignoring: %s", rvalue); return 0; } |