spl: Avoid checking for Ctrl-C in SPL with print_buffer()
authorSimon Glass <sjg@chromium.org>
Wed, 25 Sep 2019 14:11:16 +0000 (08:11 -0600)
committerBin Meng <bmeng.cn@gmail.com>
Tue, 8 Oct 2019 05:51:02 +0000 (13:51 +0800)
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>
lib/display_options.c

index cff20f375523be26aceaa88801eaa3723cc21b60..ec16d75e0e4cf2a2444d4a3f1e0836f18c937445 100644 (file)
@@ -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;