]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
network: warn about deprecated value in DHCP=
authorYu Watanabe <watanabe.yu+github@gmail.com>
Tue, 19 Feb 2019 03:35:51 +0000 (12:35 +0900)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Tue, 19 Feb 2019 21:12:53 +0000 (06:12 +0900)
src/network/networkd-network.c

index 19dd031f293067bb4994effd90455b31b98c7eab..fabb0ef52f801cb306699dfdb9eeaf78ebfefe8c 100644 (file)
@@ -813,6 +813,10 @@ int config_parse_dhcp(
                         log_syntax(unit, LOG_ERR, filename, line, 0, "Failed to parse DHCP option, ignoring: %s", rvalue);
                         return 0;
                 }
+
+                log_syntax(unit, LOG_WARNING, filename, line, 0,
+                           "DHCP=%s is deprecated, please use DHCP=%s instead.",
+                           rvalue, address_family_boolean_to_string(s));
         }
 
         *dhcp = s;