summaryrefslogtreecommitdiffstats
path: root/commands/dmesg.c
diff options
context:
space:
mode:
authorMarc Kleine-Budde <mkl@pengutronix.de>2015-03-31 18:14:55 +0200
committerSascha Hauer <s.hauer@pengutronix.de>2015-04-03 08:01:53 +0200
commit134f24615b134f69c680f960781ff3df16b9c722 (patch)
treea9c0089e5c9dff17d4fd7f1c8599e86a861b14b2 /commands/dmesg.c
parent7b6ede69739f46053dba3bf20837563c0fcd2c58 (diff)
downloadbarebox-134f24615b134f69c680f960781ff3df16b9c722.tar.gz
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>
Diffstat (limited to 'commands/dmesg.c')
-rw-r--r--commands/dmesg.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/commands/dmesg.c b/commands/dmesg.c
index b2bb334..510bc16 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);