rtlwifi: Convert printks to pr_<level>
Use the current logging styles. Add pr_fmt where appropriate. Remove now unnecessary prefixes from printks. Convert hard coded prefix to __func__. Add a missing "\n" to a format. Signed-off-by: Joe Perches <joe@perches.com> Acked-by: Larry Finger <Larry.Finger@lwfinger.net> Signed-off-by: John W. Linville <linville@tuxdriver.com>
This commit is contained in:

committed by
John W. Linville

parent
6054069a03
commit
292b11926f
@@ -24,6 +24,9 @@
|
||||
* Hsinchu 300, Taiwan.
|
||||
*
|
||||
*****************************************************************************/
|
||||
|
||||
#define pr_fmt(fmt) KBUILD_MODNAME ": " fmt
|
||||
|
||||
#include <linux/usb.h>
|
||||
#include "core.h"
|
||||
#include "wifi.h"
|
||||
@@ -104,9 +107,8 @@ static int _usbctrl_vendorreq_sync_read(struct usb_device *udev, u8 request,
|
||||
pdata, len, 0); /* max. timeout */
|
||||
|
||||
if (status < 0)
|
||||
printk(KERN_ERR "reg 0x%x, usbctrl_vendorreq TimeOut! "
|
||||
"status:0x%x value=0x%x\n", value, status,
|
||||
*(u32 *)pdata);
|
||||
pr_err("reg 0x%x, usbctrl_vendorreq TimeOut! status:0x%x value=0x%x\n",
|
||||
value, status, *(u32 *)pdata);
|
||||
return status;
|
||||
}
|
||||
|
||||
@@ -316,7 +318,7 @@ static int _rtl_usb_init_rx(struct ieee80211_hw *hw)
|
||||
rtlusb->usb_rx_segregate_hdl =
|
||||
rtlpriv->cfg->usb_interface_cfg->usb_rx_segregate_hdl;
|
||||
|
||||
printk(KERN_INFO "rtl8192cu: rx_max_size %d, rx_urb_num %d, in_ep %d\n",
|
||||
pr_info("rx_max_size %d, rx_urb_num %d, in_ep %d\n",
|
||||
rtlusb->rx_max_size, rtlusb->rx_urb_num, rtlusb->in_ep);
|
||||
init_usb_anchor(&rtlusb->rx_submitted);
|
||||
return 0;
|
||||
@@ -580,7 +582,7 @@ static void _rtl_rx_completed(struct urb *_urb)
|
||||
} else{
|
||||
/* TO DO */
|
||||
_rtl_rx_pre_process(hw, skb);
|
||||
printk(KERN_ERR "rtlwifi: rx agg not supported\n");
|
||||
pr_err("rx agg not supported\n");
|
||||
}
|
||||
goto resubmit;
|
||||
}
|
||||
|
Reference in New Issue
Block a user