Staging: ks7010: Replace printk with netdev_*
PATCH v2 1/1 Staging: ks7010: Replace printk with netdev_*
This is a patch to ks_hostif.c file that fixes up a checkpatch.pl
WARNING: Prefer [subsystem eg: netdev]_info([subsystem]dev, ... then dev_info(dev, ... then pr_info(... to printk(KERN_INFO ...
For netdev devices netdev_info and netdev_warn is preferred over printk(KERN_INFO/WARN..).
---
Changes in v2:
-rebase the staging-testing branch
--- drivers/staging/ks7010/ks_hostif.c | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-)
drivers/staging/ks7010/ks_hostif.c +4 -7
@@ -476,8 +476,7 @@ void hostif_data_indication(struct ks_wlan_private *priv) skb->dev->last_rx = jiffies;netif_rx (skb); }else { -printk (KERN_WARNING -"ks_wlan: Memory squeeze, dropping packet.\n" ); +netdev_warn (skb->dev,"ks_wlan: Memory squeeze, dropping packet.\n" ); priv->nstats.rx_dropped++; }break ;
@@ -511,8 +510,7 @@ void hostif_data_indication(struct ks_wlan_private *priv) skb->dev->last_rx = jiffies;netif_rx (skb); }else { -printk (KERN_WARNING -"ks_wlan: Memory squeeze, dropping packet.\n" ); +netdev_warn (skb->dev,"ks_wlan: Memory squeeze, dropping packet.\n" ); priv->nstats.rx_dropped++; }break ;
@@ -560,8 +558,7 @@ void hostif_mib_get_confirm(struct ks_wlan_private *priv) dev->dev_addr[5 ] = priv->eth_addr[5 ]; dev->dev_addr[6 ] =0x00 ; dev->dev_addr[7 ] =0x00 ; -printk (KERN_INFO -"ks_wlan: MAC ADDRESS = %02x:%02x:%02x:%02x:%02x:%02x\n" , +netdev_info (dev,"ks_wlan: MAC ADDRESS = %02x:%02x:%02x:%02x:%02x:%02x\n" , priv->eth_addr[0 ], priv->eth_addr[1 ], priv->eth_addr[2 ], priv->eth_addr[3 ], priv->eth_addr[4 ], priv->eth_addr[5 ]);break ;
@@ -571,7 +568,7 @@ void hostif_mib_get_confirm(struct ks_wlan_private *priv) priv->version_size = priv->rx_size;memcpy (priv->firmware_version, priv->rxp, priv->rx_size); priv->firmware_version[priv->rx_size] ='\0' ; -printk (KERN_INFO "ks_wlan: firmware ver. = %s\n" , +netdev_info (dev,"ks_wlan: firmware ver. = %s\n" , priv->firmware_version);hostif_sme_enqueue (priv,SME_GET_PRODUCT_VERSION );/* wake_up_interruptible_all(&priv->confirm_wait); */
Signature · 1 line
2.7.4
Greg Kroah-Hartman
maintainerQuoted 5 lines · Mihaela Muraru
This is a patch to
ks_hostif.cfile that fixes up a checkpatch.plWARNING: Prefer [subsystem eg: netdev]_info([subsystem]dev, ... then dev_info(dev, ... then pr_info(... to printk(KERN_INFO ...
Quoted 8 lines
For netdev devices
netdev_infoandnetdev_warnis preferred overprintk(KERN_INFO/WARN..).Signed-off-by Mihaela Muraru <[email protected]>---
Changes in v2:
-rebase the staging-testing branch
Really? It still does not apply :(
Note, many people seem to be working on this same file, in the same area, for some reason...
thanks,
greg k-h
Quoted 11 lines · Greg Kroah-Hartman
Quoted 10 lines · Mihaela Muraru
This is a patch to
ks_hostif.cfile that fixes up a checkpatch.plWARNING: Prefer [subsystem eg: netdev]_info([subsystem]dev, ... then dev_info(dev, ... then pr_info(... to printk(KERN_INFO ...
For netdev devices
netdev_infoandnetdev_warnis preferred overprintk(KERN_INFO/WARN..).Signed-off-by Mihaela Muraru <[email protected]>
Quoted 8 lines
Quoted 3 lines
---
Changes in v2:
-rebase the staging-testing branchReally? It still does not apply :(
Note, many people seem to be working on this same file, in the same area, for some reason...
Thank you for reply.
I saw that this file has a lot of problems and because of that I will rebase it again and I will resend it,if is ok for you. It is a small contribution, but it can improve something.
mihaela
Quoted 3 lines
thanks,
greg k-h
Greg Kroah-Hartman
maintainerQuoted 18 lines · Muraru Mihaela
Quoted 17 lines · Greg Kroah-Hartman
Quoted 5 lines · Mihaela Muraru
This is a patch to
ks_hostif.cfile that fixes up a checkpatch.plWARNING: Prefer [subsystem eg: netdev]_info([subsystem]dev, ... then dev_info(dev, ... then pr_info(... to printk(KERN_INFO ...
Quoted 8 lines
For netdev devices
netdev_infoandnetdev_warnis preferred overprintk(KERN_INFO/WARN..).Signed-off-by Mihaela Muraru <[email protected]>---
Changes in v2:
-rebase the staging-testing branchReally? It still does not apply :(
Quoted 8 lines
Quoted 2 lines
Note, many people seem to be working on this same file, in the same area, for some reason...
Thank you for reply.
I saw that this file has a lot of problems and because of that I will rebase it again and I will resend it,if is ok for you. It is a small contribution, but it can improve something.
Yes, please continue working on this file if you want to, I am always willing to accept patches.
I just know it can get frustrating when multiple people work in the same place, as someone always ends up getting their patch rejected.
thanks,
greg k-h
Quoted 28 lines · Greg Kroah-Hartman
Quoted 18 lines · Muraru Mihaela
Quoted 17 lines · Greg Kroah-Hartman
Quoted 5 lines · Mihaela Muraru
This is a patch to
ks_hostif.cfile that fixes up a checkpatch.plWARNING: Prefer [subsystem eg: netdev]_info([subsystem]dev, ... then dev_info(dev, ... then pr_info(... to printk(KERN_INFO ...
Quoted 8 lines
For netdev devices
netdev_infoandnetdev_warnis preferred overprintk(KERN_INFO/WARN..).Signed-off-by Mihaela Muraru <[email protected]>---
Changes in v2:
-rebase the staging-testing branchReally? It still does not apply :(
Quoted 8 lines
Quoted 2 lines
Note, many people seem to be working on this same file, in the same area, for some reason...
Thank you for reply.
I saw that this file has a lot of problems and because of that I will rebase it again and I will resend it,if is ok for you. It is a small contribution, but it can improve something.
Quoted 5 lines
Yes, please continue working on this file if you want to, I am always willing to accept patches.
I just know it can get frustrating when multiple people work in the same place, as someone always ends up getting their patch rejected.
Thank you,
mihaela
Quoted 3 lines
thanks,
greg k-h