From: Mohan Kumar <mohankumar718@gmail.com>
To: linux@dominikbrodowski.net
Cc: linux-kernel@vger.kernel.org
Subject: [PATCH] drivers: pcmcia: This patch fix the following checkpatch warning.
Date: Tue, 16 Apr 2019 20:45:44 +0300 [thread overview]
Message-ID: <1555436744-15494-1-git-send-email-mohankumar718@gmail.com> (raw)
Switch hardcoded function name with a reference to __func__ making the
code more maintainable
WARNING: Prefer using '"%s...", __func__' to using function's name, in a
string
Signed-off-by: Mohan Kumar <mohankumar718@gmail.com>
---
drivers/pcmcia/tcic.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/pcmcia/tcic.c b/drivers/pcmcia/tcic.c
index 1a0e3f0987..fc653e7 100644
--- a/drivers/pcmcia/tcic.c
+++ b/drivers/pcmcia/tcic.c
@@ -540,7 +540,7 @@ static irqreturn_t tcic_interrupt(int irq, void *dev)
} else
active = 1;
- pr_debug("tcic_interrupt()\n");
+ pr_debug("%s()\n", __func__);
for (i = 0; i < sockets; i++) {
psock = socket_table[i].psock;
@@ -583,7 +583,7 @@ static irqreturn_t tcic_interrupt(int irq, void *dev)
static void tcic_timer(struct timer_list *unused)
{
- pr_debug("tcic_timer()\n");
+ pr_debug("%s()\n", __func__);
tcic_timer_pending = 0;
tcic_interrupt(0, NULL);
} /* tcic_timer */
--
2.7.4
next reply other threads:[~2019-04-16 17:45 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-04-16 17:45 Mohan Kumar [this message]
2019-04-17 18:25 ` [PATCH] drivers: pcmcia: This patch fix the following checkpatch warning Dominik Brodowski
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1555436744-15494-1-git-send-email-mohankumar718@gmail.com \
--to=mohankumar718@gmail.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux@dominikbrodowski.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox