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:
@@ -173,6 +173,7 @@ set_carrier (NMDevice8023Ethernet *self, const gboolean carrier)
|
|||||||
g_object_notify (G_OBJECT (self), NM_DEVICE_802_3_ETHERNET_CARRIER);
|
g_object_notify (G_OBJECT (self), NM_DEVICE_802_3_ETHERNET_CARRIER);
|
||||||
|
|
||||||
state = nm_device_interface_get_state (NM_DEVICE_INTERFACE (self));
|
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 (state == NM_DEVICE_STATE_UNAVAILABLE) {
|
||||||
if (carrier)
|
if (carrier)
|
||||||
nm_device_state_changed (NM_DEVICE (self), NM_DEVICE_STATE_DISCONNECTED);
|
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;
|
old_state = priv->state;
|
||||||
priv->state = 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) {
|
if (priv->failed_to_disconnected_id) {
|
||||||
g_source_remove (priv->failed_to_disconnected_id);
|
g_source_remove (priv->failed_to_disconnected_id);
|
||||||
|
Reference in New Issue
Block a user