From: Simon Glass Date: Wed, 23 Dec 2020 15:11:14 +0000 (-0700) Subject: sysreset: Use a shorter error with SPL X-Git-Tag: v2025.01-rc5-pxa1908~2072^2~1^2~66 X-Git-Url: http://git.dujemihanovic.xyz/%22http:/www.sics.se/static/%7B%7B%20.RelPermalink%20%7D%7D?a=commitdiff_plain;h=4c66cb4a780c3936f3585b8ffc977f64e03f7e7f;p=u-boot.git sysreset: Use a shorter error with SPL Use a minimal error message to save space. Sort the header files while we are here. Signed-off-by: Simon Glass --- diff --git a/drivers/sysreset/sysreset-uclass.c b/drivers/sysreset/sysreset-uclass.c index 3f5414ed1f..e69fb2255b 100644 --- a/drivers/sysreset/sysreset-uclass.c +++ b/drivers/sysreset/sysreset-uclass.c @@ -9,12 +9,13 @@ #include #include #include -#include -#include -#include #include #include +#include +#include #include +#include +#include #include #include #include @@ -101,7 +102,10 @@ void sysreset_walk_halt(enum sysreset_t type) mdelay(100); /* Still no reset? Give up */ - log_err("System reset not supported on this platform\n"); + if (spl_phase() <= PHASE_SPL) + log_err("no sysreset\n"); + else + log_err("System reset not supported on this platform\n"); hang(); }