Staging: ks7010: Fix hardcoded function names in strings. Warnings reported by checkpatch.pl.
PATCH 1/1 Staging: ks7010: Fix hardcoded function names in strings. Warnings reported by checkpatch.pl.
This commit replaces hardcoded function name strings to the more preferred '"%s...", __func__' style. These warnings were reported by checkpatch.pl.
--- drivers/staging/ks7010/ks7010_sdio.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/staging/ks7010/ks7010_sdio.c +2 -2
@@ -834,7 +834,7 @@ static int ks7010_sdio_probe(struct sdio_func *func,unsigned char byte;int ret; -DPRINTK (5 ,"ks7010_sdio_probe()\n" ); +DPRINTK (5 ,"%s()\n" , __func__); priv =NULL ; netdev =NULL ;
@@ -1008,7 +1008,7 @@ static void ks7010_sdio_remove(struct sdio_func *func)struct ks_sdio_card *card;struct ks_wlan_private *priv; -DPRINTK (1 ,"ks7010_sdio_remove()\n" ); +DPRINTK (1 ,"%s()\n" , __func__); card =sdio_get_drvdata (func);
Signature · 1 line
2.7.4
Greg KH
maintainerQuoted 2 lines · Jonathan Whitaker
This commit replaces hardcoded function name strings to the more preferred '"%s...",
__func__' style. These warnings were reported by checkpatch.pl.
Please wrap your changelog text at 72 columns.
And your subject is very odd, please fix that up as well.
Quoted 20 lines
Signed-off-by Jonathan Whitaker <[email protected]>--- drivers/staging/ks7010/ks7010_sdio.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)drivers/staging/ks7010/ks7010_sdio.c +1
-1@@ -834,7 +834,7 @@ static int ks7010_sdio_probe(struct sdio_func *func,unsigned char byte;int ret; -DPRINTK (5 ,"ks7010_sdio_probe()\n" ); +DPRINTK (5 ,"%s()\n" , __func__); priv =NULL ; netdev =NULL ;
drivers/staging/ks7010/ks7010_sdio.c static void ks7010_sdio_remove(struct sdio_func *func) · line 1011
Quoted 5 lines
drivers/staging/ks7010/ks7010_sdio.c +1
-1@@ -1008,7 +1008,7 @@ static void ks7010_sdio_remove(struct sdio_func *func)struct ks_sdio_card *card;struct ks_wlan_private *priv; -DPRINTK (1 ,"ks7010_sdio_remove()\n" ); +DPRINTK (1 ,"%s()\n" , __func__);
These lines can just be deleted entirely, we have in-kernel functionality for tracing kernel function calls, no need to have special debug lines just for that.
thanks,
greg k-h