From 18b74c3ec6157b84b80898121f4e631ad690264d Mon Sep 17 00:00:00 2001 From: Masahiro Yamada Date: Tue, 13 Jan 2015 15:24:33 +0900 Subject: commands: fix a warning in help.c MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 Signed-off-by: Sascha Hauer --- commands/help.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'commands/help.c') 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; } } -- cgit v1.2.3