summaryrefslogtreecommitdiffstats
path: root/commands/help.c
diff options
context:
space:
mode:
authorMasahiro Yamada <yamada.m@jp.panasonic.com>2015-01-13 15:24:33 +0900
committerSascha Hauer <s.hauer@pengutronix.de>2015-01-13 08:55:48 +0100
commit18b74c3ec6157b84b80898121f4e631ad690264d (patch)
tree36efd5a21689b6fd64dc3af3bac7925e8233aa8b /commands/help.c
parent3f577105a6100276c9467ff54a0fb1feed269c9d (diff)
downloadbarebox-18b74c3ec6157b84b80898121f4e631ad690264d.tar.gz
commands: fix a warning in help.c
Fix the following warning: commands/help.c: In function ‘list_group’: commands/help.c:57:4: warning: format not a string literal and no format arguments [-Wformat-security] printf(cmdtp->name); ^ Signed-off-by: Masahiro Yamada <yamada.m@jp.panasonic.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'commands/help.c')
-rw-r--r--commands/help.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/commands/help.c b/commands/help.c
index 8985335..6e61bde 100644
--- a/commands/help.c
+++ b/commands/help.c
@@ -54,7 +54,7 @@ static void list_group(int verbose, const char *grpname, uint32_t group)
printf(", ");
pos += 2;
}
- printf(cmdtp->name);
+ puts(cmdtp->name);
pos += len;
}
}