diff options
author | Joe Perches <joe@perches.com> | 2012-03-18 20:30:52 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2012-04-10 14:52:13 -0400 |
commit | 516304b0f45614fb8967dc86ff681499204cdbb1 (patch) | |
tree | 0bbd4315ab59c25451e0d8baeecd69ff9f7c9f31 /drivers/net/wireless/ath/ath5k | |
parent | 47107e84446f4724d25c724493679cc50eeef53c (diff) |
ath: Add and use pr_fmt, convert printks to pr_<level>
Use a more current logging style.
Make sure all output is prefixed appropriately.
Signed-off-by: Joe Perches <joe@perches.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/ath/ath5k')
-rw-r--r-- | drivers/net/wireless/ath/ath5k/ani.c | 44 | ||||
-rw-r--r-- | drivers/net/wireless/ath/ath5k/ath5k.h | 32 | ||||
-rw-r--r-- | drivers/net/wireless/ath/ath5k/attach.c | 2 | ||||
-rw-r--r-- | drivers/net/wireless/ath/ath5k/base.c | 2 | ||||
-rw-r--r-- | drivers/net/wireless/ath/ath5k/debug.c | 17 | ||||
-rw-r--r-- | drivers/net/wireless/ath/ath5k/desc.c | 2 | ||||
-rw-r--r-- | drivers/net/wireless/ath/ath5k/dma.c | 2 | ||||
-rw-r--r-- | drivers/net/wireless/ath/ath5k/eeprom.c | 2 | ||||
-rw-r--r-- | drivers/net/wireless/ath/ath5k/initvals.c | 5 | ||||
-rw-r--r-- | drivers/net/wireless/ath/ath5k/led.c | 2 | ||||
-rw-r--r-- | drivers/net/wireless/ath/ath5k/mac80211-ops.c | 2 | ||||
-rw-r--r-- | drivers/net/wireless/ath/ath5k/pci.c | 4 | ||||
-rw-r--r-- | drivers/net/wireless/ath/ath5k/phy.c | 2 | ||||
-rw-r--r-- | drivers/net/wireless/ath/ath5k/qcu.c | 2 | ||||
-rw-r--r-- | drivers/net/wireless/ath/ath5k/reset.c | 2 | ||||
-rw-r--r-- | drivers/net/wireless/ath/ath5k/sysfs.c | 2 |
16 files changed, 74 insertions, 50 deletions
diff --git a/drivers/net/wireless/ath/ath5k/ani.c b/drivers/net/wireless/ath/ath5k/ani.c index 35e93704c4e..5c008757662 100644 --- a/drivers/net/wireless/ath/ath5k/ani.c +++ b/drivers/net/wireless/ath/ath5k/ani.c | |||
@@ -14,6 +14,8 @@ | |||
14 | * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. | 14 | * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. |
15 | */ | 15 | */ |
16 | 16 | ||
17 | #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt | ||
18 | |||
17 | #include "ath5k.h" | 19 | #include "ath5k.h" |
18 | #include "reg.h" | 20 | #include "reg.h" |
19 | #include "debug.h" | 21 | #include "debug.h" |
@@ -728,33 +730,25 @@ void | |||
728 | ath5k_ani_print_counters(struct ath5k_hw *ah) | 730 | ath5k_ani_print_counters(struct ath5k_hw *ah) |
729 | { | 731 | { |
730 | /* clears too */ | 732 | /* clears too */ |
731 | printk(KERN_NOTICE "ACK fail\t%d\n", | 733 | pr_notice("ACK fail\t%d\n", ath5k_hw_reg_read(ah, AR5K_ACK_FAIL)); |
732 | ath5k_hw_reg_read(ah, AR5K_ACK_FAIL)); | 734 | pr_notice("RTS fail\t%d\n", ath5k_hw_reg_read(ah, AR5K_RTS_FAIL)); |
733 | printk(KERN_NOTICE "RTS fail\t%d\n", | 735 | pr_notice("RTS success\t%d\n", ath5k_hw_reg_read(ah, AR5K_RTS_OK)); |
734 | ath5k_hw_reg_read(ah, AR5K_RTS_FAIL)); | 736 | pr_notice("FCS error\t%d\n", ath5k_hw_reg_read(ah, AR5K_FCS_FAIL)); |
735 | printk(KERN_NOTICE "RTS success\t%d\n", | ||
736 | ath5k_hw_reg_read(ah, AR5K_RTS_OK)); | ||
737 | printk(KERN_NOTICE "FCS error\t%d\n", | ||
738 | ath5k_hw_reg_read(ah, AR5K_FCS_FAIL)); | ||
739 | 737 | ||
740 | /* no clear */ | 738 | /* no clear */ |
741 | printk(KERN_NOTICE "tx\t%d\n", | 739 | pr_notice("tx\t%d\n", ath5k_hw_reg_read(ah, AR5K_PROFCNT_TX)); |
742 | ath5k_hw_reg_read(ah, AR5K_PROFCNT_TX)); | 740 | pr_notice("rx\t%d\n", ath5k_hw_reg_read(ah, AR5K_PROFCNT_RX)); |
743 | printk(KERN_NOTICE "rx\t%d\n", | 741 | pr_notice("busy\t%d\n", ath5k_hw_reg_read(ah, AR5K_PROFCNT_RXCLR)); |
744 | ath5k_hw_reg_read(ah, AR5K_PROFCNT_RX)); | 742 | pr_notice("cycles\t%d\n", ath5k_hw_reg_read(ah, AR5K_PROFCNT_CYCLE)); |
745 | printk(KERN_NOTICE "busy\t%d\n", | 743 | |
746 | ath5k_hw_reg_read(ah, AR5K_PROFCNT_RXCLR)); | 744 | pr_notice("AR5K_PHYERR_CNT1\t%d\n", |
747 | printk(KERN_NOTICE "cycles\t%d\n", | 745 | ath5k_hw_reg_read(ah, AR5K_PHYERR_CNT1)); |
748 | ath5k_hw_reg_read(ah, AR5K_PROFCNT_CYCLE)); | 746 | pr_notice("AR5K_PHYERR_CNT2\t%d\n", |
749 | 747 | ath5k_hw_reg_read(ah, AR5K_PHYERR_CNT2)); | |
750 | printk(KERN_NOTICE "AR5K_PHYERR_CNT1\t%d\n", | 748 | pr_notice("AR5K_OFDM_FIL_CNT\t%d\n", |
751 | ath5k_hw_reg_read(ah, AR5K_PHYERR_CNT1)); | 749 | ath5k_hw_reg_read(ah, AR5K_OFDM_FIL_CNT)); |
752 | printk(KERN_NOTICE "AR5K_PHYERR_CNT2\t%d\n", | 750 | pr_notice("AR5K_CCK_FIL_CNT\t%d\n", |
753 | ath5k_hw_reg_read(ah, AR5K_PHYERR_CNT2)); | 751 | ath5k_hw_reg_read(ah, AR5K_CCK_FIL_CNT)); |
754 | printk(KERN_NOTICE "AR5K_OFDM_FIL_CNT\t%d\n", | ||
755 | ath5k_hw_reg_read(ah, AR5K_OFDM_FIL_CNT)); | ||
756 | printk(KERN_NOTICE "AR5K_CCK_FIL_CNT\t%d\n", | ||
757 | ath5k_hw_reg_read(ah, AR5K_CCK_FIL_CNT)); | ||
758 | } | 752 | } |
759 | 753 | ||
760 | #endif | 754 | #endif |
diff --git a/drivers/net/wireless/ath/ath5k/ath5k.h b/drivers/net/wireless/ath/ath5k/ath5k.h index 8d434b8f585..954c3734da9 100644 --- a/drivers/net/wireless/ath/ath5k/ath5k.h +++ b/drivers/net/wireless/ath/ath5k/ath5k.h | |||
@@ -76,26 +76,28 @@ | |||
76 | GENERIC DRIVER DEFINITIONS | 76 | GENERIC DRIVER DEFINITIONS |
77 | \****************************/ | 77 | \****************************/ |
78 | 78 | ||
79 | #define ATH5K_PRINTF(fmt, ...) \ | 79 | #define ATH5K_PRINTF(fmt, ...) \ |
80 | printk(KERN_WARNING "%s: " fmt, __func__, ##__VA_ARGS__) | 80 | pr_warn("%s: " fmt, __func__, ##__VA_ARGS__) |
81 | 81 | ||
82 | #define ATH5K_PRINTK(_sc, _level, _fmt, ...) \ | 82 | #define ATH5K_PRINTK(_sc, _level, _fmt, ...) \ |
83 | printk(_level "ath5k %s: " _fmt, \ | 83 | printk(_level pr_fmt("%s%s" _fmt), \ |
84 | ((_sc) && (_sc)->hw) ? wiphy_name((_sc)->hw->wiphy) : "", \ | 84 | ((_sc) && (_sc)->hw) ? wiphy_name((_sc)->hw->wiphy) : "", \ |
85 | ##__VA_ARGS__) | 85 | ((_sc) && (_sc)->hw) ? ": " : "", \ |
86 | 86 | ##__VA_ARGS__) | |
87 | #define ATH5K_PRINTK_LIMIT(_sc, _level, _fmt, ...) do { \ | 87 | |
88 | if (net_ratelimit()) \ | 88 | #define ATH5K_PRINTK_LIMIT(_sc, _level, _fmt, ...) \ |
89 | ATH5K_PRINTK(_sc, _level, _fmt, ##__VA_ARGS__); \ | 89 | do { \ |
90 | } while (0) | 90 | if (net_ratelimit()) \ |
91 | ATH5K_PRINTK(_sc, _level, _fmt, ##__VA_ARGS__); \ | ||
92 | } while (0) | ||
91 | 93 | ||
92 | #define ATH5K_INFO(_sc, _fmt, ...) \ | 94 | #define ATH5K_INFO(_sc, _fmt, ...) \ |
93 | ATH5K_PRINTK(_sc, KERN_INFO, _fmt, ##__VA_ARGS__) | 95 | ATH5K_PRINTK(_sc, KERN_INFO, _fmt, ##__VA_ARGS__) |
94 | 96 | ||
95 | #define ATH5K_WARN(_sc, _fmt, ...) \ | 97 | #define ATH5K_WARN(_sc, _fmt, ...) \ |
96 | ATH5K_PRINTK_LIMIT(_sc, KERN_WARNING, _fmt, ##__VA_ARGS__) | 98 | ATH5K_PRINTK_LIMIT(_sc, KERN_WARNING, _fmt, ##__VA_ARGS__) |
97 | 99 | ||
98 | #define ATH5K_ERR(_sc, _fmt, ...) \ | 100 | #define ATH5K_ERR(_sc, _fmt, ...) \ |
99 | ATH5K_PRINTK_LIMIT(_sc, KERN_ERR, _fmt, ##__VA_ARGS__) | 101 | ATH5K_PRINTK_LIMIT(_sc, KERN_ERR, _fmt, ##__VA_ARGS__) |
100 | 102 | ||
101 | /* | 103 | /* |
diff --git a/drivers/net/wireless/ath/ath5k/attach.c b/drivers/net/wireless/ath/ath5k/attach.c index d7114c75fe9..7106547a14d 100644 --- a/drivers/net/wireless/ath/ath5k/attach.c +++ b/drivers/net/wireless/ath/ath5k/attach.c | |||
@@ -20,6 +20,8 @@ | |||
20 | * Attach/Detach Functions and helpers * | 20 | * Attach/Detach Functions and helpers * |
21 | \*************************************/ | 21 | \*************************************/ |
22 | 22 | ||
23 | #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt | ||
24 | |||
23 | #include <linux/pci.h> | 25 | #include <linux/pci.h> |
24 | #include <linux/slab.h> | 26 | #include <linux/slab.h> |
25 | #include "ath5k.h" | 27 | #include "ath5k.h" |
diff --git a/drivers/net/wireless/ath/ath5k/base.c b/drivers/net/wireless/ath/ath5k/base.c index 0e643b016b3..a9c0503237e 100644 --- a/drivers/net/wireless/ath/ath5k/base.c +++ b/drivers/net/wireless/ath/ath5k/base.c | |||
@@ -40,6 +40,8 @@ | |||
40 | * | 40 | * |
41 | */ | 41 | */ |
42 | 42 | ||
43 | #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt | ||
44 | |||
43 | #include <linux/module.h> | 45 | #include <linux/module.h> |
44 | #include <linux/delay.h> | 46 | #include <linux/delay.h> |
45 | #include <linux/dma-mapping.h> | 47 | #include <linux/dma-mapping.h> |
diff --git a/drivers/net/wireless/ath/ath5k/debug.c b/drivers/net/wireless/ath/ath5k/debug.c index 8c5ce8b0c73..9be885707e2 100644 --- a/drivers/net/wireless/ath/ath5k/debug.c +++ b/drivers/net/wireless/ath/ath5k/debug.c | |||
@@ -57,6 +57,9 @@ | |||
57 | * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF | 57 | * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF |
58 | * THE POSSIBILITY OF SUCH DAMAGES. | 58 | * THE POSSIBILITY OF SUCH DAMAGES. |
59 | */ | 59 | */ |
60 | |||
61 | #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt | ||
62 | |||
60 | #include <linux/export.h> | 63 | #include <linux/export.h> |
61 | #include <linux/moduleparam.h> | 64 | #include <linux/moduleparam.h> |
62 | 65 | ||
@@ -254,10 +257,10 @@ static ssize_t write_file_beacon(struct file *file, | |||
254 | 257 | ||
255 | if (strncmp(buf, "disable", 7) == 0) { | 258 | if (strncmp(buf, "disable", 7) == 0) { |
256 | AR5K_REG_DISABLE_BITS(ah, AR5K_BEACON, AR5K_BEACON_ENABLE); | 259 | AR5K_REG_DISABLE_BITS(ah, AR5K_BEACON, AR5K_BEACON_ENABLE); |
257 | printk(KERN_INFO "debugfs disable beacons\n"); | 260 | pr_info("debugfs disable beacons\n"); |
258 | } else if (strncmp(buf, "enable", 6) == 0) { | 261 | } else if (strncmp(buf, "enable", 6) == 0) { |
259 | AR5K_REG_ENABLE_BITS(ah, AR5K_BEACON, AR5K_BEACON_ENABLE); | 262 | AR5K_REG_ENABLE_BITS(ah, AR5K_BEACON, AR5K_BEACON_ENABLE); |
260 | printk(KERN_INFO "debugfs enable beacons\n"); | 263 | pr_info("debugfs enable beacons\n"); |
261 | } | 264 | } |
262 | return count; | 265 | return count; |
263 | } | 266 | } |
@@ -457,19 +460,19 @@ static ssize_t write_file_antenna(struct file *file, | |||
457 | 460 | ||
458 | if (strncmp(buf, "diversity", 9) == 0) { | 461 | if (strncmp(buf, "diversity", 9) == 0) { |
459 | ath5k_hw_set_antenna_mode(ah, AR5K_ANTMODE_DEFAULT); | 462 | ath5k_hw_set_antenna_mode(ah, AR5K_ANTMODE_DEFAULT); |
460 | printk(KERN_INFO "ath5k debug: enable diversity\n"); | 463 | pr_info("debug: enable diversity\n"); |
461 | } else if (strncmp(buf, "fixed-a", 7) == 0) { | 464 | } else if (strncmp(buf, "fixed-a", 7) == 0) { |
462 | ath5k_hw_set_antenna_mode(ah, AR5K_ANTMODE_FIXED_A); | 465 | ath5k_hw_set_antenna_mode(ah, AR5K_ANTMODE_FIXED_A); |
463 | printk(KERN_INFO "ath5k debugfs: fixed antenna A\n"); | 466 | pr_info("debug: fixed antenna A\n"); |
464 | } else if (strncmp(buf, "fixed-b", 7) == 0) { | 467 | } else if (strncmp(buf, "fixed-b", 7) == 0) { |
465 | ath5k_hw_set_antenna_mode(ah, AR5K_ANTMODE_FIXED_B); | 468 | ath5k_hw_set_antenna_mode(ah, AR5K_ANTMODE_FIXED_B); |
466 | printk(KERN_INFO "ath5k debug: fixed antenna B\n"); | 469 | pr_info("debug: fixed antenna B\n"); |
467 | } else if (strncmp(buf, "clear", 5) == 0) { | 470 | } else if (strncmp(buf, "clear", 5) == 0) { |
468 | for (i = 0; i < ARRAY_SIZE(ah->stats.antenna_rx); i++) { | 471 | for (i = 0; i < ARRAY_SIZE(ah->stats.antenna_rx); i++) { |
469 | ah->stats.antenna_rx[i] = 0; | 472 | ah->stats.antenna_rx[i] = 0; |
470 | ah->stats.antenna_tx[i] = 0; | 473 | ah->stats.antenna_tx[i] = 0; |
471 | } | 474 | } |
472 | printk(KERN_INFO "ath5k debug: cleared antenna stats\n"); | 475 | pr_info("debug: cleared antenna stats\n"); |
473 | } | 476 | } |
474 | return count; | 477 | return count; |
475 | } | 478 | } |
@@ -639,7 +642,7 @@ static ssize_t write_file_frameerrors(struct file *file, | |||
639 | st->txerr_fifo = 0; | 642 | st->txerr_fifo = 0; |
640 | st->txerr_filt = 0; | 643 | st->txerr_filt = 0; |
641 | st->tx_all_count = 0; | 644 | st->tx_all_count = 0; |
642 | printk(KERN_INFO "ath5k debug: cleared frameerrors stats\n"); | 645 | pr_info("debug: cleared frameerrors stats\n"); |
643 | } | 646 | } |
644 | return count; | 647 | return count; |
645 | } | 648 | } |
diff --git a/drivers/net/wireless/ath/ath5k/desc.c b/drivers/net/wireless/ath/ath5k/desc.c index f8bfa3ac2af..77a60777909 100644 --- a/drivers/net/wireless/ath/ath5k/desc.c +++ b/drivers/net/wireless/ath/ath5k/desc.c | |||
@@ -21,6 +21,8 @@ | |||
21 | Hardware Descriptor Functions | 21 | Hardware Descriptor Functions |
22 | \******************************/ | 22 | \******************************/ |
23 | 23 | ||
24 | #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt | ||
25 | |||
24 | #include "ath5k.h" | 26 | #include "ath5k.h" |
25 | #include "reg.h" | 27 | #include "reg.h" |
26 | #include "debug.h" | 28 | #include "debug.h" |
diff --git a/drivers/net/wireless/ath/ath5k/dma.c b/drivers/net/wireless/ath/ath5k/dma.c index 5cc9aa81469..ce86f158423 100644 --- a/drivers/net/wireless/ath/ath5k/dma.c +++ b/drivers/net/wireless/ath/ath5k/dma.c | |||
@@ -29,6 +29,8 @@ | |||
29 | * status registers (ISR). | 29 | * status registers (ISR). |
30 | */ | 30 | */ |
31 | 31 | ||
32 | #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt | ||
33 | |||
32 | #include "ath5k.h" | 34 | #include "ath5k.h" |
33 | #include "reg.h" | 35 | #include "reg.h" |
34 | #include "debug.h" | 36 | #include "debug.h" |
diff --git a/drivers/net/wireless/ath/ath5k/eeprom.c b/drivers/net/wireless/ath/ath5k/eeprom.c index cd708c15b77..4026c906cc7 100644 --- a/drivers/net/wireless/ath/ath5k/eeprom.c +++ b/drivers/net/wireless/ath/ath5k/eeprom.c | |||
@@ -21,6 +21,8 @@ | |||
21 | * EEPROM access functions and helpers * | 21 | * EEPROM access functions and helpers * |
22 | \*************************************/ | 22 | \*************************************/ |
23 | 23 | ||
24 | #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt | ||
25 | |||
24 | #include <linux/slab.h> | 26 | #include <linux/slab.h> |
25 | 27 | ||
26 | #include "ath5k.h" | 28 | #include "ath5k.h" |
diff --git a/drivers/net/wireless/ath/ath5k/initvals.c b/drivers/net/wireless/ath/ath5k/initvals.c index a1ea78e05b4..ee1c2fa8b59 100644 --- a/drivers/net/wireless/ath/ath5k/initvals.c +++ b/drivers/net/wireless/ath/ath5k/initvals.c | |||
@@ -19,6 +19,8 @@ | |||
19 | * | 19 | * |
20 | */ | 20 | */ |
21 | 21 | ||
22 | #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt | ||
23 | |||
22 | #include "ath5k.h" | 24 | #include "ath5k.h" |
23 | #include "reg.h" | 25 | #include "reg.h" |
24 | #include "debug.h" | 26 | #include "debug.h" |
@@ -1574,8 +1576,7 @@ ath5k_hw_write_initvals(struct ath5k_hw *ah, u8 mode, bool skip_pcu) | |||
1574 | 1576 | ||
1575 | /* AR5K_MODE_11B */ | 1577 | /* AR5K_MODE_11B */ |
1576 | if (mode > 2) { | 1578 | if (mode > 2) { |
1577 | ATH5K_ERR(ah, | 1579 | ATH5K_ERR(ah, "unsupported channel mode: %d\n", mode); |
1578 | "unsupported channel mode: %d\n", mode); | ||
1579 | return -EINVAL; | 1580 | return -EINVAL; |
1580 | } | 1581 | } |
1581 | 1582 | ||
diff --git a/drivers/net/wireless/ath/ath5k/led.c b/drivers/net/wireless/ath/ath5k/led.c index c1151c72371..b9f708a45f4 100644 --- a/drivers/net/wireless/ath/ath5k/led.c +++ b/drivers/net/wireless/ath/ath5k/led.c | |||
@@ -39,6 +39,8 @@ | |||
39 | * | 39 | * |
40 | */ | 40 | */ |
41 | 41 | ||
42 | #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt | ||
43 | |||
42 | #include <linux/pci.h> | 44 | #include <linux/pci.h> |
43 | #include "ath5k.h" | 45 | #include "ath5k.h" |
44 | 46 | ||
diff --git a/drivers/net/wireless/ath/ath5k/mac80211-ops.c b/drivers/net/wireless/ath/ath5k/mac80211-ops.c index 5c532995541..22b80af0f47 100644 --- a/drivers/net/wireless/ath/ath5k/mac80211-ops.c +++ b/drivers/net/wireless/ath/ath5k/mac80211-ops.c | |||
@@ -41,6 +41,8 @@ | |||
41 | * | 41 | * |
42 | */ | 42 | */ |
43 | 43 | ||
44 | #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt | ||
45 | |||
44 | #include <net/mac80211.h> | 46 | #include <net/mac80211.h> |
45 | #include <asm/unaligned.h> | 47 | #include <asm/unaligned.h> |
46 | 48 | ||
diff --git a/drivers/net/wireless/ath/ath5k/pci.c b/drivers/net/wireless/ath/ath5k/pci.c index 849fa060ebc..53424e8e6d8 100644 --- a/drivers/net/wireless/ath/ath5k/pci.c +++ b/drivers/net/wireless/ath/ath5k/pci.c | |||
@@ -14,6 +14,8 @@ | |||
14 | * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. | 14 | * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. |
15 | */ | 15 | */ |
16 | 16 | ||
17 | #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt | ||
18 | |||
17 | #include <linux/nl80211.h> | 19 | #include <linux/nl80211.h> |
18 | #include <linux/pci.h> | 20 | #include <linux/pci.h> |
19 | #include <linux/pci-aspm.h> | 21 | #include <linux/pci-aspm.h> |
@@ -347,7 +349,7 @@ init_ath5k_pci(void) | |||
347 | 349 | ||
348 | ret = pci_register_driver(&ath5k_pci_driver); | 350 | ret = pci_register_driver(&ath5k_pci_driver); |
349 | if (ret) { | 351 | if (ret) { |
350 | printk(KERN_ERR "ath5k_pci: can't register pci driver\n"); | 352 | pr_err("pci: can't register pci driver\n"); |
351 | return ret; | 353 | return ret; |
352 | } | 354 | } |
353 | 355 | ||
diff --git a/drivers/net/wireless/ath/ath5k/phy.c b/drivers/net/wireless/ath/ath5k/phy.c index 3a2845489a1..8b71a2d947e 100644 --- a/drivers/net/wireless/ath/ath5k/phy.c +++ b/drivers/net/wireless/ath/ath5k/phy.c | |||
@@ -22,6 +22,8 @@ | |||
22 | * PHY related functions * | 22 | * PHY related functions * |
23 | \***********************/ | 23 | \***********************/ |
24 | 24 | ||
25 | #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt | ||
26 | |||
25 | #include <linux/delay.h> | 27 | #include <linux/delay.h> |
26 | #include <linux/slab.h> | 28 | #include <linux/slab.h> |
27 | #include <asm/unaligned.h> | 29 | #include <asm/unaligned.h> |
diff --git a/drivers/net/wireless/ath/ath5k/qcu.c b/drivers/net/wireless/ath/ath5k/qcu.c index 30b50f93417..a6de200538c 100644 --- a/drivers/net/wireless/ath/ath5k/qcu.c +++ b/drivers/net/wireless/ath/ath5k/qcu.c | |||
@@ -20,6 +20,8 @@ | |||
20 | Queue Control Unit, DCF Control Unit Functions | 20 | Queue Control Unit, DCF Control Unit Functions |
21 | \********************************************/ | 21 | \********************************************/ |
22 | 22 | ||
23 | #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt | ||
24 | |||
23 | #include "ath5k.h" | 25 | #include "ath5k.h" |
24 | #include "reg.h" | 26 | #include "reg.h" |
25 | #include "debug.h" | 27 | #include "debug.h" |
diff --git a/drivers/net/wireless/ath/ath5k/reset.c b/drivers/net/wireless/ath/ath5k/reset.c index 200f165c0c6..0c2dd4771c3 100644 --- a/drivers/net/wireless/ath/ath5k/reset.c +++ b/drivers/net/wireless/ath/ath5k/reset.c | |||
@@ -23,6 +23,8 @@ | |||
23 | Reset function and helpers | 23 | Reset function and helpers |
24 | \****************************/ | 24 | \****************************/ |
25 | 25 | ||
26 | #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt | ||
27 | |||
26 | #include <asm/unaligned.h> | 28 | #include <asm/unaligned.h> |
27 | 29 | ||
28 | #include <linux/pci.h> /* To determine if a card is pci-e */ | 30 | #include <linux/pci.h> /* To determine if a card is pci-e */ |
diff --git a/drivers/net/wireless/ath/ath5k/sysfs.c b/drivers/net/wireless/ath/ath5k/sysfs.c index 9364da7bd13..04cf0ca7261 100644 --- a/drivers/net/wireless/ath/ath5k/sysfs.c +++ b/drivers/net/wireless/ath/ath5k/sysfs.c | |||
@@ -1,3 +1,5 @@ | |||
1 | #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt | ||
2 | |||
1 | #include <linux/device.h> | 3 | #include <linux/device.h> |
2 | #include <linux/pci.h> | 4 | #include <linux/pci.h> |
3 | 5 | ||