Skip to contentSkip to conversation

ath: Let user know which keycache method is complaining.

PATCH New greearb at candelatech.com 1 participant 1 message Apr 1, 2013 Atheros ath generic utilities

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ath: Let user know which keycache method is complaining.

From: Ben Greear <[email protected]>

Should make the warning messages more useful.

---
 drivers/net/wireless/ath/key.c |    9 ++++++---
 1 files changed, 6 insertions(+), 3 deletions(-)
drivers/net/wireless/ath/key.c +6 -3
index 5c54aa4..1816b4e 100644
@@ -45,7 +45,8 @@ bool ath_hw_keyreset(struct ath_common *common, u16 entry)
 	void *ah = common->ah;
 
 	if (entry >= common->keymax) {
-		ath_err(common, "keycache entry %u out of range\n", entry);
+		ath_err(common, "keyreset: keycache entry %u out of range\n",
+			entry);
 		return false;
 	}
 
@@ -91,7 +92,8 @@ static bool ath_hw_keysetmac(struct ath_common *common,
 	void *ah = common->ah;
 
 	if (entry >= common->keymax) {
-		ath_err(common, "keycache entry %u out of range\n", entry);
+		ath_err(common, "keysetmac: keycache entry %u out of range\n",
+			entry);
 		return false;
 	}
 
@@ -133,7 +135,8 @@ static bool ath_hw_set_keycache_entry(struct ath_common *common, u16 entry,
 	u32 keyType;
 
 	if (entry >= common->keymax) {
-		ath_err(common, "keycache entry %u out of range\n", entry);
+		ath_err(common, "set-entry: keycache entry %u out of range\n",
+			entry);
 		return false;
 	}
 
Signature · 1 line
1.7.3.4