Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1608178 > unrolled thread

[PATCH] drivers/staging/wilc1000: Using __func__ instead of hardcoded function name

Started byPushkar Jambhlekar <pushkar.iit@gmail.com>
First post2017-03-24 08:30 +0100
Last post2017-03-24 08:30 +0100
Articles 1 — 1 participant

Back to article view | Back to linux.kernel


Contents

  [PATCH] drivers/staging/wilc1000: Using __func__ instead of hardcoded function name Pushkar Jambhlekar <pushkar.iit@gmail.com> - 2017-03-24 08:30 +0100

#1608178 — [PATCH] drivers/staging/wilc1000: Using __func__ instead of hardcoded function name

FromPushkar Jambhlekar <pushkar.iit@gmail.com>
Date2017-03-24 08:30 +0100
Subject[PATCH] drivers/staging/wilc1000: Using __func__ instead of hardcoded function name
Message-ID<torPz-6yo-1@gated-at.bofh.it>
dev_err: replacing hardcoded function name with '%s' and __func__

Signed-off-by: Pushkar Jambhlekar <pushkar.iit@gmail.com>
---
 drivers/staging/wilc1000/wilc_sdio.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/staging/wilc1000/wilc_sdio.c b/drivers/staging/wilc1000/wilc_sdio.c
index ad4eb0f..ce6c3b4 100644
--- a/drivers/staging/wilc1000/wilc_sdio.c
+++ b/drivers/staging/wilc1000/wilc_sdio.c
@@ -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;
 }
-- 
2.7.4

[toc] | [standalone]


Back to top | Article view | linux.kernel


csiph-web