From 80dda9aab649a116e3e559d2df5e1b80b3b32a3a Mon Sep 17 00:00:00 2001 From: Mahesh Kumar Kalikot Veetil Date: Mon, 17 Jul 2017 11:38:03 -0700 Subject: [PATCH] qcacld-3.0: Correct dev name in logs Fix device name in the log. Current log is, "hdd_open_adapter: xxxx: wlan%d interface created. iftype: 0." Expected log is, "hdd_open_adapter: xxxx: wlan0 interface created. iftype: 0." CRS-Fixed: 2078530 Change-Id: Ida38e1e2f26d0a86382550409317ec36bd68f071 --- core/hdd/src/wlan_hdd_main.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/core/hdd/src/wlan_hdd_main.c b/core/hdd/src/wlan_hdd_main.c index 267a22948dfe..754c21dec5f1 100644 --- a/core/hdd/src/wlan_hdd_main.c +++ b/core/hdd/src/wlan_hdd_main.c @@ -3688,7 +3688,6 @@ hdd_adapter_t *hdd_open_adapter(hdd_context_t *hdd_ctx, uint8_t session_type, QDF_STATUS status = QDF_STATUS_E_FAILURE; hdd_cfg80211_state_t *cfgState; - hdd_info("%s interface created. iftype: %d", iface_name, session_type); if (hdd_ctx->current_intf_count >= hdd_ctx->max_intf_count) { /* @@ -3877,7 +3876,11 @@ hdd_adapter_t *hdd_open_adapter(hdd_context_t *hdd_ctx, uint8_t session_type, } if (QDF_STATUS_SUCCESS != hdd_debugfs_init(adapter)) - hdd_err("Interface %s wow debug_fs init failed", iface_name); + hdd_err("Interface %s wow debug_fs init failed", + netdev_name(adapter->dev)); + + hdd_info("%s interface created. iftype: %d", netdev_name(adapter->dev), + session_type); return adapter;