diff options
author | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2017-05-11 14:00:25 -0400 |
---|---|---|
committer | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2017-05-11 14:01:14 -0400 |
commit | d84ed2bd132609d2ed6dd9c00a1d7cb2cf94409d (patch) | |
tree | 95595948981469e8665108642ef82b4df861e5b2 /src/network | |
parent | 36423ff433de5d349791aee7586ebf000e74a49b (diff) | |
download | systemd-d84ed2bd132609d2ed6dd9c00a1d7cb2cf94409d.tar.gz systemd-d84ed2bd132609d2ed6dd9c00a1d7cb2cf94409d.tar.bz2 systemd-d84ed2bd132609d2ed6dd9c00a1d7cb2cf94409d.zip |
networkd: pretiffy message about invalid prefix
We know how the field we are parsing is called, let's put this information in
the error message:
"Route Source= prefix is invalid, ignoring assignment: ..."
"Route Destination= prefix is invalid, ignoring assignment: ..."
Diffstat (limited to 'src/network')
-rw-r--r-- | src/network/networkd-route.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/network/networkd-route.c b/src/network/networkd-route.c index a1c60c49b1..bbfcdb2394 100644 --- a/src/network/networkd-route.c +++ b/src/network/networkd-route.c @@ -776,7 +776,9 @@ int config_parse_destination(const char *unit, if (r < 0) { r = in_addr_prefix_from_string(rvalue, AF_INET6, &buffer, &prefixlen); if (r < 0) { - log_syntax(unit, LOG_ERR, filename, line, r, "Route source or destination prefix is invalid, ignoring assignment: %s", rvalue); + log_syntax(unit, LOG_ERR, filename, line, r, + "Route %s= prefix is invalid, ignoring assignment: %s", + lvalue, rvalue); return 0; } |