* [PATCH] input: specialkeys: remove unused printk argument
@ 2019-10-01 6:24 Ahmad Fatoum
2019-10-02 6:44 ` Sascha Hauer
0 siblings, 1 reply; 2+ messages in thread
From: Ahmad Fatoum @ 2019-10-01 6:24 UTC (permalink / raw)
To: barebox
Two pr_info calls have no format specifiers, but are still passed an
argument. Remove the unused arguments.
Signed-off-by: Ahmad Fatoum <ahmad@a3f.at>
---
drivers/input/specialkeys.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/input/specialkeys.c b/drivers/input/specialkeys.c
index ff29b8455d7a..a3f2bf4e4f48 100644
--- a/drivers/input/specialkeys.c
+++ b/drivers/input/specialkeys.c
@@ -13,12 +13,12 @@ static void input_specialkeys_notify(struct input_notifier *in,
{
switch (ev->code) {
case KEY_RESTART:
- pr_info("Triggering reset due to special key.\n", ev->code);
+ pr_info("Triggering reset due to special key.\n");
restart_machine();
break;
case KEY_POWER:
- pr_info("Triggering poweroff due to special key.\n", ev->code);
+ pr_info("Triggering poweroff due to special key.\n");
poweroff_machine();
break;
}
--
2.20.1
_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [PATCH] input: specialkeys: remove unused printk argument
2019-10-01 6:24 [PATCH] input: specialkeys: remove unused printk argument Ahmad Fatoum
@ 2019-10-02 6:44 ` Sascha Hauer
0 siblings, 0 replies; 2+ messages in thread
From: Sascha Hauer @ 2019-10-02 6:44 UTC (permalink / raw)
To: Ahmad Fatoum; +Cc: barebox
On Tue, Oct 01, 2019 at 08:24:30AM +0200, Ahmad Fatoum wrote:
> Two pr_info calls have no format specifiers, but are still passed an
> argument. Remove the unused arguments.
>
> Signed-off-by: Ahmad Fatoum <ahmad@a3f.at>
> ---
> drivers/input/specialkeys.c | 4 ++--
> 1 file changed, 2 insertions(+), 2 deletions(-)
Applied, thanks
Sascha
--
Pengutronix e.K. | |
Industrial Linux Solutions | http://www.pengutronix.de/ |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 |
Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 |
_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2019-10-02 6:44 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-10-01 6:24 [PATCH] input: specialkeys: remove unused printk argument Ahmad Fatoum
2019-10-02 6:44 ` Sascha Hauer
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox