summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeff Johnson <jjohnson@qca.qualcomm.com>2014-02-14 17:23:47 -0800
committerAkash Patel <c_akashp@qca.qualcomm.com>2014-02-18 01:00:22 -0800
commitc38dca34bdec01afe3f81a7a14a3bfe7a9277c87 (patch)
tree1695f10925779017fb646560080a60a769b7ce8c
parent41604371e55c63ef8788988dd130b778d4d9ce6f (diff)
wlan: qcacld: Fix ambiguous ioctl error logging
There are multiple places where the message "Invalid IOCTL command" is logged. All of the messages are identical, so when the message is actually logged it is impossible to determine exactly where, and hence why, it was logged. Update the logs to add the function name so that the source of the log will be unique. Change-Id: Ie02e1d62eaa35d3b7726003a572cfc09793eac20 CRs-fixed: 616471
-rw-r--r--CORE/HDD/src/wlan_hdd_ftm.c2
-rw-r--r--CORE/HDD/src/wlan_hdd_wext.c9
2 files changed, 6 insertions, 5 deletions
diff --git a/CORE/HDD/src/wlan_hdd_ftm.c b/CORE/HDD/src/wlan_hdd_ftm.c
index f4025f3e3f37..7b4a9135f91f 100644
--- a/CORE/HDD/src/wlan_hdd_ftm.c
+++ b/CORE/HDD/src/wlan_hdd_ftm.c
@@ -4825,7 +4825,7 @@ static int iw_ftm_get_char_setnone(struct net_device *dev, struct iw_request_inf
}
default:
{
- hddLog(LOGE, "Invalid IOCTL command %d \n", sub_cmd );
+ hddLog(LOGE, "%s: Invalid IOCTL command %d", __func__, sub_cmd );
break;
}
}
diff --git a/CORE/HDD/src/wlan_hdd_wext.c b/CORE/HDD/src/wlan_hdd_wext.c
index ff941e65d4d7..477695fca630 100644
--- a/CORE/HDD/src/wlan_hdd_wext.c
+++ b/CORE/HDD/src/wlan_hdd_wext.c
@@ -6398,7 +6398,7 @@ int iw_set_three_ints_getnone(struct net_device *dev, struct iw_request_info *in
default:
{
- hddLog(LOGE, "Invalid IOCTL command %d", sub_cmd);
+ hddLog(LOGE, "%s: Invalid IOCTL command %d", __func__, sub_cmd );
break;
}
}
@@ -6906,7 +6906,7 @@ static int iw_get_char_setnone(struct net_device *dev, struct iw_request_info *i
#endif
default:
{
- hddLog(LOGE, "Invalid IOCTL command %d", sub_cmd);
+ hddLog(LOGE, "%s: Invalid IOCTL command %d", __func__, sub_cmd );
break;
}
}
@@ -7291,7 +7291,8 @@ int iw_set_var_ints_getnone(struct net_device *dev, struct iw_request_info *info
#endif
default:
{
- hddLog(LOGE, "Invalid IOCTL command %d", sub_cmd );
+ hddLog(LOGE, "%s: Invalid IOCTL command %d",
+ __func__, sub_cmd );
}
break;
}
@@ -9437,7 +9438,7 @@ int iw_set_two_ints_getnone(struct net_device *dev, struct iw_request_info *info
default:
{
- hddLog(LOGE, "Invalid IOCTL command %d", sub_cmd);
+ hddLog(LOGE, "%s: Invalid IOCTL command %d", __func__, sub_cmd );
break;
}
}