aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/ath/main.c
diff options
context:
space:
mode:
authorJoe Perches <joe@perches.com>2012-03-18 20:30:52 -0400
committerJohn W. Linville <linville@tuxdriver.com>2012-04-10 14:52:13 -0400
commit516304b0f45614fb8967dc86ff681499204cdbb1 (patch)
tree0bbd4315ab59c25451e0d8baeecd69ff9f7c9f31 /drivers/net/wireless/ath/main.c
parent47107e84446f4724d25c724493679cc50eeef53c (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/main.c')
-rw-r--r--drivers/net/wireless/ath/main.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/net/wireless/ath/main.c b/drivers/net/wireless/ath/main.c
index ea2c737138d..8e99540cd90 100644
--- a/drivers/net/wireless/ath/main.c
+++ b/drivers/net/wireless/ath/main.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/kernel.h> 19#include <linux/kernel.h>
18#include <linux/module.h> 20#include <linux/module.h>
19 21
@@ -49,7 +51,7 @@ struct sk_buff *ath_rxbuf_alloc(struct ath_common *common,
49 if (off != 0) 51 if (off != 0)
50 skb_reserve(skb, common->cachelsz - off); 52 skb_reserve(skb, common->cachelsz - off);
51 } else { 53 } else {
52 printk(KERN_ERR "skbuff alloc of size %u failed\n", len); 54 pr_err("skbuff alloc of size %u failed\n", len);
53 return NULL; 55 return NULL;
54 } 56 }
55 57