From 134f24615b134f69c680f960781ff3df16b9c722 Mon Sep 17 00:00:00 2001 From: Marc Kleine-Budde Date: Tue, 31 Mar 2015 18:14:55 +0200 Subject: commands: dmesg: fi format security warning MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 Signed-off-by: Sascha Hauer --- commands/dmesg.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'commands/dmesg.c') diff --git a/commands/dmesg.c b/commands/dmesg.c index b2bb334e24..510bc16594 100644 --- a/commands/dmesg.c +++ b/commands/dmesg.c @@ -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); -- cgit v1.2.3