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 <sjg@chromium.org> Acked-by: Mike Frysinger <vapier@gentoo.org>
This commit is contained in:

committed by
Wolfgang Denk

parent
578ac1e9ba
commit
5ddb118da4
@@ -158,7 +158,7 @@ void post_output_backlog(void)
|
||||
post_log("PASSED\n");
|
||||
else {
|
||||
post_log("FAILED\n");
|
||||
show_boot_progress(-31);
|
||||
show_boot_error(31);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -295,7 +295,7 @@ static int post_run_single(struct post_test *test,
|
||||
} else {
|
||||
if ((*test->test)(flags) != 0) {
|
||||
post_log("FAILED\n");
|
||||
show_boot_progress(-32);
|
||||
show_boot_error(32);
|
||||
show_post_progress(i, POST_AFTER, POST_FAILED);
|
||||
if (test_flags & POST_CRITICAL)
|
||||
gd->flags |= GD_FLG_POSTFAIL;
|
||||
|
Reference in New Issue
Block a user