]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
networkd: improve interface rename log message a bit (#7299)
authorLennart Poettering <lennart@poettering.net>
Sun, 12 Nov 2017 15:26:58 +0000 (16:26 +0100)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Sun, 12 Nov 2017 15:26:58 +0000 (16:26 +0100)
Let's clarify that it's not networkd that renames interfaces, but
something else (for example, udev's link builtin based on .link files)

This doesn't change any logic, it just rewords the message a bit, to
clarify that we only log this for informational purposes, not because we
execute the rename operation ourselves.

Fixes: #7143
src/network/networkd-link.c

index fd063e43d261a11c9142791705c16f1c12a8b5a7..9cd221eb427406669e0fd2bc2f6fff4610c84736 100644 (file)
@@ -3149,7 +3149,7 @@ int link_update(Link *link, sd_netlink_message *m) {
 
         r = sd_netlink_message_read_string(m, IFLA_IFNAME, &ifname);
         if (r >= 0 && !streq(ifname, link->ifname)) {
-                log_link_info(link, "Renamed to %s", ifname);
+                log_link_info(link, "Interface name change detected, %s has been renamed to %s.", link->ifname, ifname);
 
                 link_free_carrier_maps(link);