projects
/
linux-block.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
11c7fd6
)
media: mceusb: don't push static constants on stack for %*ph
author
Sean Young
<sean@mess.org>
Mon, 28 Oct 2024 15:59:26 +0000
(15:59 +0000)
committer
Mauro Carvalho Chehab
<mchehab+huawei@kernel.org>
Wed, 11 Dec 2024 18:48:17 +0000
(19:48 +0100)
There is no need to pass constants via stack. The width may be explicitly
specified in the format.
Signed-off-by: Sean Young <sean@mess.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
drivers/media/rc/mceusb.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/media/rc/mceusb.c
b/drivers/media/rc/mceusb.c
index cd7af4d88b7f770162833d2db99c3f0253176ea3..d5ea3868d5a3c3d50fab8af54911887a23692e8e 100644
(file)
--- a/
drivers/media/rc/mceusb.c
+++ b/
drivers/media/rc/mceusb.c
@@
-658,8
+658,8
@@
static void mceusb_dev_printdata(struct mceusb_dev *ir, u8 *buf, int buf_len,
if (len == 2)
dev_dbg(dev, "Get hw/sw rev?");
else
- dev_dbg(dev, "hw/sw rev %
*
ph",
-
4,
&buf[offset + 2]);
+ dev_dbg(dev, "hw/sw rev %
4
ph",
+ &buf[offset + 2]);
break;
case MCE_CMD_RESUME:
dev_dbg(dev, "Device resume requested");