diff options
author | Przemo Firszt <przemo@firszt.eu> | 2012-12-11 03:21:21 +0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2013-01-12 04:39:11 +0400 |
commit | 87a573ada017b40facab87b149fcbb3344eab9e8 (patch) | |
tree | 5f2acbf94d750f45d2f5554ff4a92fbb7312d3d8 /drivers/staging/rtl8712/xmit_linux.c | |
parent | 94973b63e1bdcd3e712d9199329c9a2141eb9139 (diff) | |
download | linux-87a573ada017b40facab87b149fcbb3344eab9e8.tar.xz |
rtl8712: replace printk with better solutions
Replace printk with netdev_printk helpers, dev_printk helpers or
pr_err/warn/info if there is no device info available.
Signed-off-by: Przemo Firszt <przemo@firszt.eu>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/rtl8712/xmit_linux.c')
-rw-r--r-- | drivers/staging/rtl8712/xmit_linux.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/staging/rtl8712/xmit_linux.c b/drivers/staging/rtl8712/xmit_linux.c index 65542cb7168f..4d22bb7008f8 100644 --- a/drivers/staging/rtl8712/xmit_linux.c +++ b/drivers/staging/rtl8712/xmit_linux.c @@ -134,8 +134,7 @@ int r8712_xmit_resource_alloc(struct _adapter *padapter, for (i = 0; i < 8; i++) { pxmitbuf->pxmit_urb[i] = usb_alloc_urb(0, GFP_KERNEL); if (pxmitbuf->pxmit_urb[i] == NULL) { - printk(KERN_ERR "r8712u: pxmitbuf->pxmit_urb[i]" - " == NULL"); + netdev_err(padapter->pnetdev, "pxmitbuf->pxmit_urb[i] == NULL\n"); return _FAIL; } } |