]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
network: log_link_message_debug_errno() automatically append %m if necessary
authorYu Watanabe <watanabe.yu+github@gmail.com>
Wed, 7 May 2025 17:21:59 +0000 (02:21 +0900)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Wed, 7 May 2025 20:57:48 +0000 (05:57 +0900)
Follow-up for d28746ef552b11cba8890963f49ce3e0082e6053.
Fixes CID#1609753.

src/network/networkd-setlink.c

index 255ad5a271e733cf9dcff9fb5d0dc24c3d8bf5c7..2af553cba8c37ff359266528d6c2375504c45377 100644 (file)
@@ -154,7 +154,7 @@ static int link_set_mac_allow_retry_handler(sd_netlink *rtnl, sd_netlink_message
                  * operstate is not down. See, eth_prepare_mac_addr_change() in net/ethernet/eth.c
                  * of kernel. */
 
-                log_link_message_debug_errno(link, m, r, "Failed to set MAC address, retrying again: %m");
+                log_link_message_debug_errno(link, m, r, "Failed to set MAC address, retrying again");
 
                 r = link_request_to_set_mac(link, /* allow_retry = */ false);
                 if (r < 0)