drivers/staging/wilc1000: Using __func__ instead of hardcoded function name
authorPushkar Jambhlekar <pushkar.iit@gmail.com>
Fri, 24 Mar 2017 07:28:45 +0000 (12:58 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 29 Mar 2017 07:37:14 +0000 (09:37 +0200)
dev_err: replacing hardcoded function name with '%s' and __func__

Signed-off-by: Pushkar Jambhlekar <pushkar.iit@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/wilc1000/wilc_sdio.c

index ad4eb0fe371e4ef4795df78d32765912134767ea..ce6c3b4fe70496f44e8dffd76423e1716753f4d7 100644 (file)
@@ -74,7 +74,7 @@ static int wilc_sdio_cmd52(struct wilc *wilc, struct sdio_cmd52 *cmd)
        sdio_release_host(func);
 
        if (ret)
-               dev_err(&func->dev, "wilc_sdio_cmd52..failed, err(%d)\n", ret);
+               dev_err(&func->dev, "%s..failed, err(%d)\n", __func__, ret);
        return ret;
 }
 
@@ -103,7 +103,7 @@ static int wilc_sdio_cmd53(struct wilc *wilc, struct sdio_cmd53 *cmd)
        sdio_release_host(func);
 
        if (ret)
-               dev_err(&func->dev, "wilc_sdio_cmd53..failed, err(%d)\n", ret);
+               dev_err(&func->dev, "%s..failed, err(%d)\n", __func__,  ret);
 
        return ret;
 }