mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2025-12-24 19:30:07 +01:00
Add some debugging to help isolate an eth device startup race
git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@3614 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
This commit is contained in:
parent
083c36b7b1
commit
ccdbc475e6
2 changed files with 2 additions and 0 deletions
|
|
@ -173,6 +173,7 @@ set_carrier (NMDevice8023Ethernet *self, const gboolean carrier)
|
|||
g_object_notify (G_OBJECT (self), NM_DEVICE_802_3_ETHERNET_CARRIER);
|
||||
|
||||
state = nm_device_interface_get_state (NM_DEVICE_INTERFACE (self));
|
||||
nm_info ("(%s): carrier now %s (device state %d)", nm_device_get_iface (NM_DEVICE (self)), carrier ? "ON" : "OFF", state);
|
||||
if (state == NM_DEVICE_STATE_UNAVAILABLE) {
|
||||
if (carrier)
|
||||
nm_device_state_changed (NM_DEVICE (self), NM_DEVICE_STATE_DISCONNECTED);
|
||||
|
|
|
|||
|
|
@ -1705,6 +1705,7 @@ nm_device_state_changed (NMDevice *device, NMDeviceState state)
|
|||
|
||||
old_state = priv->state;
|
||||
priv->state = state;
|
||||
nm_info ("(%s): device state change: %d -> %d", nm_device_get_iface (device), old_state, state);
|
||||
|
||||
if (priv->failed_to_disconnected_id) {
|
||||
g_source_remove (priv->failed_to_disconnected_id);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue