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:39 +0200
committerMichael Biebl <biebl@debian.org>2012-08-07 14:23:39 +0200
commit543d05fc6d12cc608dc37ae97d4843431c6de4a8 (patch)
treedef16257d58256bc116737bdc04edce693a656de /src/nm-device.c
parent73f59c42ef878adf32efe8c7c4cb0d50ea2d04a1 (diff)
parent7f1d08cf21e97f5e60d4636bb1e6c287c34ee2df (diff)
Merge tag 'upstream/0.9.5.96' into experimental
Upstream version 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.