Skip to content

Commit b5e7850

Browse files
seanyoungmchehab
authored andcommitted
media: mceusb: don't push static constants on stack for %*ph
There is no need to pass constants via stack. The width may be explicitly specified in the format. Signed-off-by: Sean Young <[email protected]> Signed-off-by: Mauro Carvalho Chehab <[email protected]>
1 parent 11c7fd6 commit b5e7850

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

drivers/media/rc/mceusb.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -658,8 +658,8 @@ static void mceusb_dev_printdata(struct mceusb_dev *ir, u8 *buf, int buf_len,
658658
if (len == 2)
659659
dev_dbg(dev, "Get hw/sw rev?");
660660
else
661-
dev_dbg(dev, "hw/sw rev %*ph",
662-
4, &buf[offset + 2]);
661+
dev_dbg(dev, "hw/sw rev %4ph",
662+
&buf[offset + 2]);
663663
break;
664664
case MCE_CMD_RESUME:
665665
dev_dbg(dev, "Device resume requested");

0 commit comments

Comments
 (0)