core: log kernel interface indexes

This commit is contained in:
Dan Williams
2010-04-08 09:30:05 -07:00
parent 8364ce7bac
commit d0f2a50680
3 changed files with 9 additions and 0 deletions

View File

@@ -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;