9
0
Fork 0

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:
Marc Kleine-Budde 2015-03-31 18:14:55 +02:00 committed by Sascha Hauer
parent 7b6ede6973
commit 134f24615b
1 changed files with 1 additions and 1 deletions

View File

@ -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);