cmd: Convert existing long help messages to the new macro
- Generally we just drop the #ifdef CONFIG_SYS_LONGHELP and endif lines and use U_BOOT_LONGHELP to declare the same variable name as before - In a few places, either rename the variable to follow convention or introduce the variable as it was being done inline before. Signed-off-by: Tom Rini <trini@konsulko.com> Reviewed-by: Simon Glass <sjg@chromium.org>
This commit is contained in:
@@ -48,7 +48,7 @@ static int do_pcap_clear(struct cmd_tbl *cmdtp, int flag, int argc,
|
||||
return pcap_clear() ? CMD_RET_FAILURE : CMD_RET_SUCCESS;
|
||||
}
|
||||
|
||||
static char pcap_help_text[] =
|
||||
U_BOOT_LONGHELP(pcap,
|
||||
"- network packet capture\n\n"
|
||||
"pcap\n"
|
||||
"pcap init\t\t\t<addr> <max_size>\n"
|
||||
@@ -60,7 +60,7 @@ static char pcap_help_text[] =
|
||||
"With:\n"
|
||||
"\t<addr>: user address to which pcap will be stored (hexedcimal)\n"
|
||||
"\t<max_size>: Maximum size of pcap file (decimal)\n"
|
||||
"\n";
|
||||
"\n");
|
||||
|
||||
U_BOOT_CMD_WITH_SUBCMDS(pcap, "pcap", pcap_help_text,
|
||||
U_BOOT_SUBCMD_MKENT(init, 3, 0, do_pcap_init),
|
||||
|
||||
Reference in New Issue
Block a user