From b85ecb276bee4ef828852e75e9932638b48042dd Mon Sep 17 00:00:00 2001 From: Tom Rini Date: Wed, 19 Jun 2024 10:09:44 -0600 Subject: cmd: Make use of U_BOOT_LONGHELP when missing After adding the U_BOOT_LONGHELP macro some new commands came in still that were not making use if it. Switch these cases over and in a few places add missing newlines as well. Signed-off-by: Tom Rini --- cmd/cli.c | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) (limited to 'cmd/cli.c') diff --git a/cmd/cli.c b/cmd/cli.c index be3bf7dfe20..e0ddd0a43d0 100644 --- a/cmd/cli.c +++ b/cmd/cli.c @@ -118,16 +118,11 @@ static int do_cli(struct cmd_tbl *cmdtp, int flag, int argc, return CMD_RET_USAGE; } -#if CONFIG_IS_ENABLED(SYS_LONGHELP) -static char cli_help_text[] = +U_BOOT_LONGHELP(cli, "get - print current cli\n" - "set - set the current cli, possible value are: old, modern" - ; -#endif + "set - set the current cli, possible value are: old, modern\n"); U_BOOT_CMD(cli, 3, 1, do_cli, "cli", -#if CONFIG_IS_ENABLED(SYS_LONGHELP) cli_help_text -#endif ); -- cgit v1.2.3