in-addr: improve log message for e.g. [DHCPv4] AllowList=
authorYu Watanabe <watanabe.yu+github@gmail.com>
Mon, 20 Nov 2023 23:41:38 +0000 (08:41 +0900)
committerLuca Boccassi <luca.boccassi@gmail.com>
Tue, 21 Nov 2023 09:32:50 +0000 (09:32 +0000)
Closes #30107.

src/shared/in-addr-prefix-util.c

index 2dca310..7c0033d 100644 (file)
@@ -312,7 +312,8 @@ int config_parse_in_addr_prefixes(
                         }
                         if (r < 0) {
                                 log_syntax(unit, LOG_WARNING, filename, line, r,
-                                           "Address prefix is invalid, ignoring assignment: %s", word);
+                                           "Invalid address prefix is specified in [%s] %s=, ignoring assignment: %s",
+                                           section, lvalue, word);
                                 continue;
                         }