aboutsummaryrefslogtreecommitdiffstats
path: root/post
diff options
context:
space:
mode:
authorSimon Glass2011-12-10 05:07:55 -0600
committerWolfgang Denk2012-03-18 14:56:00 -0500
commit5ddb118da4cbd34c3c8a0231dedad56ba504699f (patch)
tree5fb2e7e107427bb6b30a5292283c88c65b42bd24 /post
parent578ac1e9ba4c79175e69becb28e7157a84eff241 (diff)
downloadu-boot-5ddb118da4cbd34c3c8a0231dedad56ba504699f.tar.gz
u-boot-5ddb118da4cbd34c3c8a0231dedad56ba504699f.tar.xz
u-boot-5ddb118da4cbd34c3c8a0231dedad56ba504699f.zip
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>
Diffstat (limited to 'post')
-rw-r--r--post/post.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/post/post.c b/post/post.c
index 8705b12f03..f3830be678 100644
--- a/post/post.c
+++ b/post/post.c
@@ -158,7 +158,7 @@ void post_output_backlog(void)
158 post_log("PASSED\n"); 158 post_log("PASSED\n");
159 else { 159 else {
160 post_log("FAILED\n"); 160 post_log("FAILED\n");
161 show_boot_progress(-31); 161 show_boot_error(31);
162 } 162 }
163 } 163 }
164 } 164 }
@@ -295,7 +295,7 @@ static int post_run_single(struct post_test *test,
295 } else { 295 } else {
296 if ((*test->test)(flags) != 0) { 296 if ((*test->test)(flags) != 0) {
297 post_log("FAILED\n"); 297 post_log("FAILED\n");
298 show_boot_progress(-32); 298 show_boot_error(32);
299 show_post_progress(i, POST_AFTER, POST_FAILED); 299 show_post_progress(i, POST_AFTER, POST_FAILED);
300 if (test_flags & POST_CRITICAL) 300 if (test_flags & POST_CRITICAL)
301 gd->flags |= GD_FLG_POSTFAIL; 301 gd->flags |= GD_FLG_POSTFAIL;