]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
udev: drop colon from ID_NET_NAME_MAC 21302/head
authorYu Watanabe <watanabe.yu+github@gmail.com>
Thu, 11 Nov 2021 02:56:53 +0000 (11:56 +0900)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Thu, 11 Nov 2021 09:29:55 +0000 (18:29 +0900)
Fixes a bug introduced by eaba9bb3e69635d2c490c5e1b0d262b763753e1d.

src/udev/udev-builtin-net_id.c

index c52f796361c0775e15aeedfa9af549f35668a514..4d165917509006f92a9079e95e535f606e0e1310 100644 (file)
@@ -957,7 +957,7 @@ static int builtin_net_id(sd_device *dev, sd_netlink **rtnl, int argc, char *arg
         if (names_mac(dev, &info) >= 0) {
                 char str[ALTIFNAMSIZ];
 
-                xsprintf(str, "%s%s", prefix, HW_ADDR_TO_STR(&info.hw_addr));
+                xsprintf(str, "%s%s", prefix, HW_ADDR_TO_STR_FULL(&info.hw_addr, HW_ADDR_TO_STRING_NO_COLON));
                 udev_builtin_add_property(dev, test, "ID_NET_NAME_MAC", str);
 
                 ieee_oui(dev, &info, test);