in-addr: improve log message for e.g. [DHCPv4] AllowList=

Closes #30107.
This commit is contained in:
Yu Watanabe 2023-11-21 08:41:38 +09:00 committed by Luca Boccassi
parent b595fd62e4
commit e00f1dda7d

View 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;
}