File 6001-udev-net_id-show-the-correct-identifier-in-the-debug.patch of Package systemd.23471

From 3f4c08df29b83c1b2997c45a160277d584fa1dae Mon Sep 17 00:00:00 2001
From: Franck Bui <fbui@suse.com>
Date: Thu, 27 Jan 2022 19:13:24 +0100
Subject: [PATCH 6001/6001] udev/net_id: show the correct identifier in the
 debug output of dev_pci_onboard()

(cherry picked from commit e36b00e938ef577ecff7ed4d24363f755be0ea76)

[fbui: adjust context]
---
 src/udev/udev-builtin-net_id.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/udev/udev-builtin-net_id.c b/src/udev/udev-builtin-net_id.c
index 24aa1a2f9e..fa4b9a8d12 100644
--- a/src/udev/udev-builtin-net_id.c
+++ b/src/udev/udev-builtin-net_id.c
@@ -222,7 +222,7 @@ static int dev_pci_onboard(sd_device *dev, struct netnames *names) {
                 names->pci_onboard[0] = '\0';
         log_device_debug(dev, "Onboard index identifier: index=%lu phys_port=%s dev_port=%lu → %s",
                          idx, strempty(port_name), dev_port,
-                         empty_to_na(names->pci_slot));
+                         empty_to_na(names->pci_onboard));
 
         if (sd_device_get_sysattr_value(names->pcidev, "label", &names->pci_onboard_label) >= 0)
                 log_device_debug(dev, "Onboard label from PCI device: %s", names->pci_onboard_label);
-- 
2.31.1

openSUSE Build Service is sponsored by