[U-Boot] [PATCH 07/38] spl: Avoid checking for Ctrl-C in SPL with print_buffer()

Simon Glass sjg at chromium.org
Mon Aug 26 15:59:12 UTC 2019


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 at chromium.org>
---

 lib/display_options.c | 2 ++
 1 file changed, 2 insertions(+)

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;
-- 
2.23.0.187.g17f5b7556c-goog



More information about the U-Boot mailing list