]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
media: mceusb: don't push static constants on stack for %*ph
authorSean Young <sean@mess.org>
Mon, 28 Oct 2024 15:59:26 +0000 (15:59 +0000)
committerMauro 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

index cd7af4d88b7f770162833d2db99c3f0253176ea3..d5ea3868d5a3c3d50fab8af54911887a23692e8e 100644 (file)
@@ -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");