1
0
mirror of https://github.com/systemd/systemd.git synced 2024-12-26 03:22:00 +03:00

Merge pull request #30426 from mrc0mmand/nft-shenanigans

network: show the reason why NFT operation failed
This commit is contained in:
Yu Watanabe 2023-12-12 18:56:57 +09:00 committed by GitHub
commit b0e2245219
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -674,8 +674,8 @@ static void address_modify_nft_set_context(Address *address, bool add, NFTSetCon
}
if (r < 0)
log_warning_errno(r, "Failed to %s NFT set: family %s, table %s, set %s, IP address %s, ignoring",
add? "add" : "delete",
log_warning_errno(r, "Failed to %s NFT set: family %s, table %s, set %s, IP address %s, ignoring: %m",
add ? "add" : "delete",
nfproto_to_string(nft_set->nfproto), nft_set->table, nft_set->set,
IN_ADDR_PREFIX_TO_STRING(address->family, &address->in_addr, address->prefixlen));
else