diff options
author | Masahiro Yamada <yamada.m@jp.panasonic.com> | 2015-01-13 15:24:33 +0900 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2015-01-13 08:55:48 +0100 |
commit | 18b74c3ec6157b84b80898121f4e631ad690264d (patch) | |
tree | 36efd5a21689b6fd64dc3af3bac7925e8233aa8b /commands | |
parent | 3f577105a6100276c9467ff54a0fb1feed269c9d (diff) | |
download | barebox-18b74c3ec6157b84b80898121f4e631ad690264d.tar.gz barebox-18b74c3ec6157b84b80898121f4e631ad690264d.tar.xz |
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')
-rw-r--r-- | commands/help.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/commands/help.c b/commands/help.c index 898533594f..6e61bde1af 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; } } |