X-Git-Url: https://git.kernelconcepts.de/?p=karo-tx-uboot.git;a=blobdiff_plain;f=common%2Fcmd_strings.c;h=41b166592609b02c9e03708ca57ad0469d7edf36;hp=7d05cf8e938d10616070fefccfcc65f75b4bdfb7;hb=46eeb1405961f091aac2c7ccef593075c1e4d137;hpb=cb5473205206c7f14cbb1e747f28ec75b48826e2 diff --git a/common/cmd_strings.c b/common/cmd_strings.c index 7d05cf8e93..41b1665926 100644 --- a/common/cmd_strings.c +++ b/common/cmd_strings.c @@ -12,12 +12,10 @@ static char *start_addr, *last_addr; -int do_strings(cmd_tbl_t *cmdtp, int flag, int argc, char *argv[]) +int do_strings(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[]) { - if (argc == 1) { - printf("Usage:\n%s\n", cmdtp->usage); - return 1; - } + if (argc == 1) + return CMD_RET_USAGE; if ((flag & CMD_FLAG_REPEAT) == 0) { start_addr = (char *)simple_strtoul(argv[1], NULL, 16); @@ -40,7 +38,9 @@ int do_strings(cmd_tbl_t *cmdtp, int flag, int argc, char *argv[]) return 0; } -U_BOOT_CMD(strings, 3, 1, do_strings, - "strings - display strings\n", +U_BOOT_CMD( + strings, 3, 1, do_strings, + "display strings", " [byte count]\n" - " - display strings at for at least [byte count] or first double NUL\n"); + " - display strings at for at least [byte count] or first double NUL" +);