Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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 <sean@mess.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>

authored by

Sean Young and committed by
Mauro Carvalho Chehab
b5e7850c 11c7fd6e

+2 -2
+2 -2
drivers/media/rc/mceusb.c
··· 658 658 if (len == 2) 659 659 dev_dbg(dev, "Get hw/sw rev?"); 660 660 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]); 663 663 break; 664 664 case MCE_CMD_RESUME: 665 665 dev_dbg(dev, "Device resume requested");