diff options
author | Simon Glass <sjg@chromium.org> | 2019-09-25 08:11:16 -0600 |
---|---|---|
committer | Bin Meng <bmeng.cn@gmail.com> | 2019-10-08 13:51:02 +0800 |
commit | 9bb746d819b32cdb6994ad5c09c59170e866ef3e (patch) | |
tree | ce1e86cf5939cdbbeaa018845100947485715ca8 /lib/display_options.c | |
parent | 2e2c514a40e956d857707f157201c5606c0e9da0 (diff) | |
download | u-boot-9bb746d819b32cdb6994ad5c09c59170e866ef3e.zip u-boot-9bb746d819b32cdb6994ad5c09c59170e866ef3e.tar.gz u-boot-9bb746d819b32cdb6994ad5c09c59170e866ef3e.tar.bz2 |
spl: Avoid checking for Ctrl-C in SPL with print_buffer()
We don't have a console in SPL so it doesn't make sense to check for
Ctrl-C when printing a memory dump. Skip this so that print_buffer() can
be used in SPL.
Signed-off-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
Diffstat (limited to 'lib/display_options.c')
-rw-r--r-- | lib/display_options.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/display_options.c b/lib/display_options.c index cff20f3..ec16d75 100644 --- a/lib/display_options.c +++ b/lib/display_options.c @@ -205,8 +205,10 @@ int print_buffer(ulong addr, const void *data, uint width, uint count, addr += thislinelen * width; count -= thislinelen; +#ifndef CONFIG_SPL_BUILD if (ctrlc()) return -1; +#endif } return 0; |