about summary refs log tree commit diff
path: root/src/nm-device.c
diff options
context:
space:
mode:
authorMichael Biebl <biebl@debian.org>2012-08-07 14:23:24 +0200
committerMichael Biebl <biebl@debian.org>2012-08-07 14:23:24 +0200
commit7f1d08cf21e97f5e60d4636bb1e6c287c34ee2df (patch)
tree25da3ad8d884f15bde3c263281680a5fc3ea80e0 /src/nm-device.c
parent867254ea7c2b193fecf8cd36cc6e5dc53c290d92 (diff)
Imported Upstream version 0.9.5.96 upstream/0.9.5.96
Diffstat (limited to 'src/nm-device.c')
-rw-r--r--src/nm-device.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/nm-device.c b/src/nm-device.c
index cf01003c..6eaa94da 100644
--- a/src/nm-device.c
+++ b/src/nm-device.c
@@ -4454,6 +4454,7 @@ nm_device_state_changed (NMDevice *device,
 	NMDeviceState old_state;
 	NMActRequest *req;
 	gboolean no_firmware = FALSE;
+	NMConnection *connection;
 
 	g_return_if_fail (NM_IS_DEVICE (device));
 
@@ -4554,7 +4555,11 @@ nm_device_state_changed (NMDevice *device,
 		nm_utils_call_dispatcher ("up", nm_act_request_get_connection (req), device, NULL, NULL, NULL);
 		break;
 	case NM_DEVICE_STATE_FAILED:
-		nm_log_warn (LOGD_DEVICE, "Activation (%s) failed.", nm_device_get_iface (device));
+		connection = nm_act_request_get_connection (req);
+		nm_log_warn (LOGD_DEVICE | LOGD_WIFI,
+		             "Activation (%s) failed for connection '%s'",
+		             nm_device_get_iface (device),
+		             nm_connection_get_id (connection));
 		/* Schedule the transition to DISCONNECTED.  The device can't transition
 		 * immediately because we can't change states again from the state
 		 * handler for a variety of reasons.