mirror of
https://github.com/brain-hackers/u-boot-brain
synced 2024-09-28 07:30:26 +09:00
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>
This commit is contained in:
parent
2e2c514a40
commit
9bb746d819
@ -205,8 +205,10 @@ int print_buffer(ulong addr, const void *data, uint width, uint count,
|
|||||||
addr += thislinelen * width;
|
addr += thislinelen * width;
|
||||||
count -= thislinelen;
|
count -= thislinelen;
|
||||||
|
|
||||||
|
#ifndef CONFIG_SPL_BUILD
|
||||||
if (ctrlc())
|
if (ctrlc())
|
||||||
return -1;
|
return -1;
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
|
Loading…
Reference in New Issue
Block a user