diff options
Diffstat (limited to 'common/cmd_strings.c')
-rw-r--r-- | common/cmd_strings.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/common/cmd_strings.c b/common/cmd_strings.c index bbf56a0..7d05cf8 100644 --- a/common/cmd_strings.c +++ b/common/cmd_strings.c @@ -10,8 +10,6 @@ #include <common.h> #include <command.h> -#ifdef CONFIG_CFG_STRINGS - static char *start_addr, *last_addr; int do_strings(cmd_tbl_t *cmdtp, int flag, int argc, char *argv[]) @@ -31,7 +29,8 @@ int do_strings(cmd_tbl_t *cmdtp, int flag, int argc, char *argv[]) char *addr = start_addr; do { - printf("%s\n", addr); + puts(addr); + puts("\n"); addr += strlen(addr) + 1; } while (addr[0] && addr < last_addr); @@ -45,5 +44,3 @@ U_BOOT_CMD(strings, 3, 1, do_strings, "strings - display strings\n", "<addr> [byte count]\n" " - display strings at <addr> for at least [byte count] or first double NUL\n"); - -#endif |