]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
vlan: downgrade error level if the error will be ignored
authorYu Watanabe <watanabe.yu+github@gmail.com>
Thu, 10 Sep 2020 04:52:27 +0000 (13:52 +0900)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Thu, 10 Sep 2020 04:59:04 +0000 (13:59 +0900)
src/shared/vlan-util.c

index a4b42df85ba8fbd7698632a072796017f2f06c90..180f56ede8604c8292993b1339cc1b1a583b7ae6 100644 (file)
@@ -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;
         }