aboutsummaryrefslogtreecommitdiffstats
path: root/net/mac80211/main.c
diff options
context:
space:
mode:
authorJoe Perches <joe@perches.com>2010-08-20 19:25:38 -0400
committerJohn W. Linville <linville@tuxdriver.com>2010-08-25 14:33:17 -0400
commit0fb9a9ec27718fbf7fa3153bc94becefb716ceeb (patch)
tree8f5d6a5fa9f2c6b8b08273dc198d6187d0a70361 /net/mac80211/main.c
parentb62177a0aa0521fd07cd7501534c0c3b256ebce6 (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/main.c')
-rw-r--r--net/mac80211/main.c15
1 files changed, 7 insertions, 8 deletions
diff --git a/net/mac80211/main.c b/net/mac80211/main.c
index a53feac4618c..5756fba63d48 100644
--- a/net/mac80211/main.c
+++ b/net/mac80211/main.c
@@ -713,16 +713,16 @@ int ieee80211_register_hw(struct ieee80211_hw *hw)
713 713
714 result = ieee80211_wep_init(local); 714 result = ieee80211_wep_init(local);
715 if (result < 0) 715 if (result < 0)
716 printk(KERN_DEBUG "%s: Failed to initialize wep: %d\n", 716 wiphy_debug(local->hw.wiphy, "Failed to initialize wep: %d\n",
717 wiphy_name(local->hw.wiphy), result); 717 result);
718 718
719 rtnl_lock(); 719 rtnl_lock();
720 720
721 result = ieee80211_init_rate_ctrl_alg(local, 721 result = ieee80211_init_rate_ctrl_alg(local,
722 hw->rate_control_algorithm); 722 hw->rate_control_algorithm);
723 if (result < 0) { 723 if (result < 0) {
724 printk(KERN_DEBUG "%s: Failed to initialize rate control " 724 wiphy_debug(local->hw.wiphy,
725 "algorithm\n", wiphy_name(local->hw.wiphy)); 725 "Failed to initialize rate control algorithm\n");
726 goto fail_rate; 726 goto fail_rate;
727 } 727 }
728 728
@@ -731,8 +731,8 @@ int ieee80211_register_hw(struct ieee80211_hw *hw)
731 result = ieee80211_if_add(local, "wlan%d", NULL, 731 result = ieee80211_if_add(local, "wlan%d", NULL,
732 NL80211_IFTYPE_STATION, NULL); 732 NL80211_IFTYPE_STATION, NULL);
733 if (result) 733 if (result)
734 printk(KERN_WARNING "%s: Failed to add default virtual iface\n", 734 wiphy_warn(local->hw.wiphy,
735 wiphy_name(local->hw.wiphy)); 735 "Failed to add default virtual iface\n");
736 } 736 }
737 737
738 rtnl_unlock(); 738 rtnl_unlock();
@@ -815,8 +815,7 @@ void ieee80211_unregister_hw(struct ieee80211_hw *hw)
815 815
816 if (skb_queue_len(&local->skb_queue) || 816 if (skb_queue_len(&local->skb_queue) ||
817 skb_queue_len(&local->skb_queue_unreliable)) 817 skb_queue_len(&local->skb_queue_unreliable))
818 printk(KERN_WARNING "%s: skb_queue not empty\n", 818 wiphy_warn(local->hw.wiphy, "skb_queue not empty\n");
819 wiphy_name(local->hw.wiphy));
820 skb_queue_purge(&local->skb_queue); 819 skb_queue_purge(&local->skb_queue);
821 skb_queue_purge(&local->skb_queue_unreliable); 820 skb_queue_purge(&local->skb_queue_unreliable);
822 821