mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2025-12-28 00:30:09 +01:00
core: log kernel interface indexes
This commit is contained in:
parent
8364ce7bac
commit
d0f2a50680
3 changed files with 9 additions and 0 deletions
|
|
@ -311,6 +311,9 @@ constructor (GType type,
|
|||
self = NM_DEVICE (object);
|
||||
priv = NM_DEVICE_ETHERNET_GET_PRIVATE (self);
|
||||
|
||||
nm_log_dbg (LOGD_HW | LOGD_ETHER, "(%s): kernel interface #%d",
|
||||
nm_device_get_iface (NM_DEVICE (self)), priv->ifindex);
|
||||
|
||||
caps = nm_device_get_capabilities (self);
|
||||
if (caps & NM_DEVICE_CAP_CARRIER_DETECT) {
|
||||
GError *error = NULL;
|
||||
|
|
|
|||
|
|
@ -262,6 +262,9 @@ constructor (GType type,
|
|||
self = NM_DEVICE_OLPC_MESH (object);
|
||||
priv = NM_DEVICE_OLPC_MESH_GET_PRIVATE (self);
|
||||
|
||||
nm_log_dbg (LOGD_HW | LOGD_OLPC_MESH, "(%s): kernel ifindex %d",
|
||||
nm_device_get_iface (NM_DEVICE (self)), priv->ifindex);
|
||||
|
||||
iface = nm_device_get_iface (NM_DEVICE (self));
|
||||
fd = socket (PF_INET, SOCK_DGRAM, 0);
|
||||
if (fd < 0)
|
||||
|
|
|
|||
|
|
@ -578,6 +578,9 @@ constructor (GType type,
|
|||
self = NM_DEVICE_WIFI (object);
|
||||
priv = NM_DEVICE_WIFI_GET_PRIVATE (self);
|
||||
|
||||
nm_log_dbg (LOGD_HW | LOGD_WIFI, "(%s): kernel ifindex %d",
|
||||
nm_device_get_iface (NM_DEVICE (self)), priv->ifindex);
|
||||
|
||||
memset (&range, 0, sizeof (struct iw_range));
|
||||
success = wireless_get_range (NM_DEVICE_WIFI (object), &range, &response_len);
|
||||
if (!success)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue