9
0
Fork 0

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>
This commit is contained in:
Masahiro Yamada 2015-01-13 15:24:33 +09:00 committed by Sascha Hauer
parent 3f577105a6
commit 18b74c3ec6
1 changed files with 1 additions and 1 deletions

View File

@ -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;
}
}