diff options
author | Simon Glass | 2023-10-01 19:13:06 -0600 |
---|---|---|
committer | Tom Rini | 2023-10-11 15:43:54 -0400 |
commit | 33eb0b9eef3360396aa0f650f8e1e01baf6dc181 (patch) | |
tree | c92ca08093001fca4f2ec92257b1b3f2850e09b4 /common | |
parent | 0f97e944b2bb08b7e13210fc6bea75817aee3237 (diff) |
cli: Add a command to show cmdline history
There is a function for this but it is never used. Showing the history is
a useful feature, so add a new 'history' command.
Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'common')
-rw-r--r-- | common/cli_readline.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/common/cli_readline.c b/common/cli_readline.c index 9a7c268719d..f3ba76a62ec 100644 --- a/common/cli_readline.c +++ b/common/cli_readline.c @@ -160,8 +160,7 @@ static char *hist_next(void) return ret; } -#ifndef CONFIG_CMDLINE_EDITING -static void cread_print_hist_list(void) +void cread_print_hist_list(void) { int i; unsigned long n; @@ -179,7 +178,6 @@ static void cread_print_hist_list(void) i++; } } -#endif /* CONFIG_CMDLINE_EDITING */ #define BEGINNING_OF_LINE() { \ while (num) { \ |