summaryrefslogtreecommitdiffstats
path: root/src/shared/vlan-util.c
diff options
context:
space:
mode:
authorYu Watanabe <watanabe.yu+github@gmail.com>2020-09-10 06:52:27 +0200
committerYu Watanabe <watanabe.yu+github@gmail.com>2020-09-10 06:59:04 +0200
commit8add8b508d2838dbc25649f6b4345922f1c896c4 (patch)
tree81f864a4b4327df962523368be4122d0d11d40a6 /src/shared/vlan-util.c
parentethtool: downgrade log level when the error will be ignored (diff)
downloadsystemd-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.c6
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;
}