From: Simon Glass Date: Wed, 25 Sep 2019 14:11:16 +0000 (-0600) Subject: spl: Avoid checking for Ctrl-C in SPL with print_buffer() X-Git-Tag: v2020.01-rc1~35^2~80 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=9bb746d819b32cdb6994ad5c09c59170e866ef3e;p=oweals%2Fu-boot.git 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 Reviewed-by: Bin Meng --- diff --git a/lib/display_options.c b/lib/display_options.c index cff20f3755..ec16d75e0e 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;