1
0
mirror of https://github.com/systemd/systemd.git synced 2025-02-02 13:47:27 +03:00

network: adjust log message

The address or neighbor processed here may not be foreign.
This commit is contained in:
Yu Watanabe 2023-12-11 15:19:02 +09:00
parent be26893c85
commit e924dc598e
2 changed files with 2 additions and 2 deletions

View File

@ -1802,7 +1802,7 @@ int manager_rtnl_process_address(sd_netlink *rtnl, sd_netlink_message *message,
/* If we did not know the address, then save it. */
r = address_add(link, tmp);
if (r < 0) {
log_link_warning_errno(link, r, "Failed to remember foreign address %s, ignoring: %m",
log_link_warning_errno(link, r, "Failed to save received address %s, ignoring: %m",
IN_ADDR_PREFIX_TO_STRING(tmp->family, &tmp->in_addr, tmp->prefixlen));
return 0;
}

View File

@ -574,7 +574,7 @@ int manager_rtnl_process_neighbor(sd_netlink *rtnl, sd_netlink_message *message,
if (!neighbor) {
r = neighbor_add(link, tmp);
if (r < 0) {
log_link_warning_errno(link, r, "Failed to remember foreign neighbor, ignoring: %m");
log_link_warning_errno(link, r, "Failed to save received neighbor, ignoring: %m");
return 0;
}
neighbor = TAKE_PTR(tmp);