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

media: imon: 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
ef2cc59c b5e7850c

+1 -1
+1 -1
drivers/media/rc/imon_raw.c
··· 37 37 if (packet_no == 0xff) 38 38 return; 39 39 40 - dev_dbg(imon->dev, "data: %*ph", 8, imon->ir_buf); 40 + dev_dbg(imon->dev, "data: %8ph", imon->ir_buf); 41 41 42 42 /* 43 43 * Only the first 5 bytes contain IR data. Right shift so we move