commands: dmesg: fi format security warning
commands/dmesg.c: In function ‘do_dmesg’: commands/dmesg.c:71:3: warning: format not a string literal and no format arguments [-Wformat-security] Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
This commit is contained in:
parent
7b6ede6973
commit
134f24615b
|
@ -68,7 +68,7 @@ static int do_dmesg(int argc, char *argv[])
|
|||
*(buf + len) = '\n';
|
||||
*(buf + len + 1) = 0;
|
||||
|
||||
pr_info(buf);
|
||||
pr_info("%s", buf);
|
||||
|
||||
free(buf);
|
||||
|
||||
|
|
Loading…
Reference in New Issue