From 5ddb118da4cbd34c3c8a0231dedad56ba504699f Mon Sep 17 00:00:00 2001 From: Simon Glass Date: Sat, 10 Dec 2011 11:07:55 +0000 Subject: bootstage: Use show_boot_error() for -ve progress numbers Rather than the caller negating our progress numbers to indicate an error has occurred, which seems hacky, add a function to indicate this. Signed-off-by: Simon Glass Acked-by: Mike Frysinger --- common/env_common.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'common/env_common.c') diff --git a/common/env_common.c b/common/env_common.c index 71811c4..49b55f1 100644 --- a/common/env_common.c +++ b/common/env_common.c @@ -228,7 +228,7 @@ void env_relocate(void) #if defined(CONFIG_ENV_IS_NOWHERE) /* Environment not changable */ set_default_env(NULL); #else - show_boot_progress(-60); + show_boot_error(60); set_default_env("!bad CRC"); #endif } else { -- cgit v1.1