Re: [PATCH] Staging: rtl8188eu: os_dep: Stop using DBG_88E

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Fri, Sep 25, 2015 at 10:23:44PM +0530, Shraddha Barke wrote:
> Stop using DBG_88E which is a custom macro for printing debugging
> messages. Instead start using pr_debug and in the process define
> pr_fmt.
> 
> Signed-off-by: Shraddha Barke <shraddha.6596@xxxxxxxxx>
> ---
>  drivers/staging/rtl8188eu/os_dep/os_intfs.c | 31 +++++++++++++++--------------
>  1 file changed, 16 insertions(+), 15 deletions(-)
> 
> diff --git a/drivers/staging/rtl8188eu/os_dep/os_intfs.c b/drivers/staging/rtl8188eu/os_dep/os_intfs.c
> index 2361bce..42ce02c 100644
> --- a/drivers/staging/rtl8188eu/os_dep/os_intfs.c
> +++ b/drivers/staging/rtl8188eu/os_dep/os_intfs.c
> @@ -19,6 +19,7 @@
>   ******************************************************************************/
>  #define _OS_INTFS_C_
>  
> +#define pr_fmt(fmt) "R8188EU: " fmt
>  #include <osdep_service.h>
>  #include <osdep_intf.h>
>  #include <drv_types.h>
> @@ -742,7 +743,7 @@ struct net_device *rtw_init_netdev(struct adapter *old_padapter)
>  	pnetdev->dev.type = &wlan_type;
>  	padapter = rtw_netdev_priv(pnetdev);
>  	padapter->pnetdev = pnetdev;
> -	DBG_88E("register rtw_netdev_ops to netdev_ops\n");
> +	pr_debug("register rtw_netdev_ops to netdev_ops\n");

can't you use dev_dbg() instead?  or netdev_dbg()?

Same goes for all of these.

thanks,

greg k-h
_______________________________________________
devel mailing list
devel@xxxxxxxxxxxxxxxxxxxxxx
http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel



[Index of Archives]     [Linux Driver Backports]     [DMA Engine]     [Linux GPIO]     [Linux SPI]     [Video for Linux]     [Linux USB Devel]     [Linux Coverity]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Yosemite Backpacking]
  Powered by Linux