Commit 9bb746d819b32cdb6994ad5c09c59170e866ef3e

Authored by Simon Glass
Committed by Bin Meng
1 parent 2e2c514a40

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>

Showing 1 changed file with 2 additions and 0 deletions Side-by-side Diff

lib/display_options.c
... ... @@ -205,8 +205,10 @@
205 205 addr += thislinelen * width;
206 206 count -= thislinelen;
207 207  
  208 +#ifndef CONFIG_SPL_BUILD
208 209 if (ctrlc())
209 210 return -1;
  211 +#endif
210 212 }
211 213  
212 214 return 0;