From: Sean Young Date: Mon, 28 Oct 2024 15:59:26 +0000 (+0000) Subject: media: mceusb: don't push static constants on stack for %*ph X-Git-Tag: v6.14-rc1~91^2~129 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=b5e7850cc87e749edd6bbb2bc2d071900ed4afd3;p=thirdparty%2Fkernel%2Flinux.git 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 Signed-off-by: Mauro Carvalho Chehab --- diff --git a/drivers/media/rc/mceusb.c b/drivers/media/rc/mceusb.c index cd7af4d88b7f7..d5ea3868d5a3c 100644 --- 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 %4ph", + &buf[offset + 2]); break; case MCE_CMD_RESUME: dev_dbg(dev, "Device resume requested");