From b2036e264ceda70674fa282152eba1d9cf45db75 Mon Sep 17 00:00:00 2001 From: Dan Williams Date: Thu, 17 Mar 2011 23:58:50 -0500 Subject: [PATCH] wimax: log a message when connecting to an NSP --- src/wimax/nm-device-wimax.c | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) diff --git a/src/wimax/nm-device-wimax.c b/src/wimax/nm-device-wimax.c index 8544e4b6f7..12db7e2728 100644 --- a/src/wimax/nm-device-wimax.c +++ b/src/wimax/nm-device-wimax.c @@ -748,23 +748,29 @@ real_act_stage2_config (NMDevice *device, NMDeviceStateReason *reason) NMDeviceWimaxPrivate *priv = NM_DEVICE_WIMAX_GET_PRIVATE (device); NMConnection *connection; NMSettingWimax *s_wimax; - const char *nsp; + const char *nsp_name, *iface; int ret; + iface = nm_device_get_iface (device); + g_assert (iface); + connection = nm_act_request_get_connection (nm_device_get_act_request (device)); g_assert (connection); s_wimax = nm_connection_get_setting_wimax (connection); g_assert (s_wimax); - nsp = nm_setting_wimax_get_network_name (s_wimax); - g_assert (nsp); + nsp_name = nm_setting_wimax_get_network_name (s_wimax); + g_assert (nsp_name); + + nm_log_info (LOGD_WIMAX, "(%s): connecting to NSP '%s'", + iface, nsp_name); priv->connect_failed = FALSE; - ret = iwmx_sdk_connect (priv->sdk, nsp); + ret = iwmx_sdk_connect (priv->sdk, nsp_name); if (ret < 0 && ret != -EINPROGRESS) { nm_log_err (LOGD_WIMAX, "(%s): failed to connect to NSP '%s'", - nm_device_get_iface (device), nsp); + iface, nsp_name); *reason = NM_DEVICE_STATE_REASON_CONFIG_FAILED; return NM_ACT_STAGE_RETURN_FAILURE; }