* [PATCH] speakup: fix checkpatch.pl warning in speak_char()
@ Justin Skists
` Samuel Thibault
0 siblings, 1 reply; 2+ messages in thread
From: Justin Skists @ UTC (permalink / raw)
To: speakup
correct the following warning from checkpatch.pl:-
WARNING: Prefer using '"%s...", __func__' to using 'speak_char', this
function's name, in a string
Signed-off-by: Justin Skists <j.skists@gmail.com>
---
drivers/staging/speakup/main.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/staging/speakup/main.c b/drivers/staging/speakup/main.c
index 67956e24779c..938a0aed7de5 100644
--- a/drivers/staging/speakup/main.c
+++ b/drivers/staging/speakup/main.c
@@ -447,7 +447,7 @@ static void speak_char(u16 ch)
cp = spk_characters[ch];
if (!cp) {
- pr_info("speak_char: cp == NULL!\n");
+ pr_info("%s: cp == NULL!\n", __func__);
return;
}
if (IS_CHAR(ch, B_CAP)) {
--
2.14.1
^ permalink raw reply [flat|nested] 2+ messages in thread* Re: [PATCH] speakup: fix checkpatch.pl warning in speak_char()
[PATCH] speakup: fix checkpatch.pl warning in speak_char() Justin Skists
@ ` Samuel Thibault
0 siblings, 0 replies; 2+ messages in thread
From: Samuel Thibault @ UTC (permalink / raw)
To: Justin Skists; +Cc: speakup
Justin Skists, on mar. 05 sept. 2017 22:05:58 +0100, wrote:
> correct the following warning from checkpatch.pl:-
>
> WARNING: Prefer using '"%s...", __func__' to using 'speak_char', this
> function's name, in a string
>
> Signed-off-by: Justin Skists <j.skists@gmail.com>
Acked-by: Samuel Thibault <samuel.thibault@ens-lyon.org>
> ---
> drivers/staging/speakup/main.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/staging/speakup/main.c b/drivers/staging/speakup/main.c
> index 67956e24779c..938a0aed7de5 100644
> --- a/drivers/staging/speakup/main.c
> +++ b/drivers/staging/speakup/main.c
> @@ -447,7 +447,7 @@ static void speak_char(u16 ch)
>
> cp = spk_characters[ch];
> if (!cp) {
> - pr_info("speak_char: cp == NULL!\n");
> + pr_info("%s: cp == NULL!\n", __func__);
> return;
> }
> if (IS_CHAR(ch, B_CAP)) {
> --
> 2.14.1
>
> _______________________________________________
> Speakup mailing list
> Speakup@linux-speakup.org
> http://linux-speakup.org/cgi-bin/mailman/listinfo/speakup
--
Samuel
<xterm> The problem with America is stupidity. I'm not saying there should be a capital punishment for stupidity, but why don't we just take the safety labels off of everything and let the problem solve itself?
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~ UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
[PATCH] speakup: fix checkpatch.pl warning in speak_char() Justin Skists
` Samuel Thibault
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).