mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2025-12-27 09:20:08 +01:00
device: log the device we were searching in udev
This commit is contained in:
parent
6baca260d1
commit
7fe250f51d
1 changed files with 5 additions and 3 deletions
|
|
@ -159,6 +159,7 @@ _update_s390_subchannels (NMDeviceEthernet *self)
|
|||
GUdevDevice *parent = NULL;
|
||||
const char *parent_path, *item, *driver;
|
||||
const char *subsystems[] = { "net", NULL };
|
||||
const char *iface;
|
||||
GDir *dir;
|
||||
GError *error = NULL;
|
||||
|
||||
|
|
@ -168,10 +169,11 @@ _update_s390_subchannels (NMDeviceEthernet *self)
|
|||
return;
|
||||
}
|
||||
|
||||
dev = g_udev_client_query_by_subsystem_and_name (client, "net",
|
||||
nm_device_get_iface (NM_DEVICE (self)));
|
||||
iface = nm_device_get_iface (NM_DEVICE (self));
|
||||
dev = iface ? g_udev_client_query_by_subsystem_and_name (client, "net", iface) : NULL;
|
||||
if (!dev) {
|
||||
_LOGW (LOGD_DEVICE | LOGD_HW, "failed to find device with udev");
|
||||
_LOGW (LOGD_DEVICE | LOGD_HW, "failed to find device '%s' with udev",
|
||||
iface ? iface : "(null)");
|
||||
goto out;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue