diff options
author | Joe Perches <joe@perches.com> | 2010-08-20 19:25:38 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2010-08-25 14:33:17 -0400 |
commit | 0fb9a9ec27718fbf7fa3153bc94becefb716ceeb (patch) | |
tree | 8f5d6a5fa9f2c6b8b08273dc198d6187d0a70361 /net/mac80211/key.c | |
parent | b62177a0aa0521fd07cd7501534c0c3b256ebce6 (diff) |
net/mac80211: Use wiphy_<level>
Standardize logging messages from
printk(KERN_<level> "%s: " fmt , wiphy_name(foo), args);
to
wiphy_<level>(foo, fmt, args);
Signed-off-by: Joe Perches <joe@perches.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'net/mac80211/key.c')
-rw-r--r-- | net/mac80211/key.c | 14 |
1 files changed, 6 insertions, 8 deletions
diff --git a/net/mac80211/key.c b/net/mac80211/key.c index 9c27c53cfae5..2ce2dbbf6309 100644 --- a/net/mac80211/key.c +++ b/net/mac80211/key.c | |||
@@ -87,10 +87,9 @@ static void ieee80211_key_enable_hw_accel(struct ieee80211_key *key) | |||
87 | key->flags |= KEY_FLAG_UPLOADED_TO_HARDWARE; | 87 | key->flags |= KEY_FLAG_UPLOADED_TO_HARDWARE; |
88 | 88 | ||
89 | if (ret && ret != -ENOSPC && ret != -EOPNOTSUPP) | 89 | if (ret && ret != -ENOSPC && ret != -EOPNOTSUPP) |
90 | printk(KERN_ERR "mac80211-%s: failed to set key " | 90 | wiphy_err(key->local->hw.wiphy, |
91 | "(%d, %pM) to hardware (%d)\n", | 91 | "failed to set key (%d, %pM) to hardware (%d)\n", |
92 | wiphy_name(key->local->hw.wiphy), | 92 | key->conf.keyidx, sta ? sta->addr : bcast_addr, ret); |
93 | key->conf.keyidx, sta ? sta->addr : bcast_addr, ret); | ||
94 | } | 93 | } |
95 | 94 | ||
96 | static void ieee80211_key_disable_hw_accel(struct ieee80211_key *key) | 95 | static void ieee80211_key_disable_hw_accel(struct ieee80211_key *key) |
@@ -121,10 +120,9 @@ static void ieee80211_key_disable_hw_accel(struct ieee80211_key *key) | |||
121 | sta, &key->conf); | 120 | sta, &key->conf); |
122 | 121 | ||
123 | if (ret) | 122 | if (ret) |
124 | printk(KERN_ERR "mac80211-%s: failed to remove key " | 123 | wiphy_err(key->local->hw.wiphy, |
125 | "(%d, %pM) from hardware (%d)\n", | 124 | "failed to remove key (%d, %pM) from hardware (%d)\n", |
126 | wiphy_name(key->local->hw.wiphy), | 125 | key->conf.keyidx, sta ? sta->addr : bcast_addr, ret); |
127 | key->conf.keyidx, sta ? sta->addr : bcast_addr, ret); | ||
128 | 126 | ||
129 | key->flags &= ~KEY_FLAG_UPLOADED_TO_HARDWARE; | 127 | key->flags &= ~KEY_FLAG_UPLOADED_TO_HARDWARE; |
130 | } | 128 | } |