diff options
author | Simon Glass <sjg@chromium.org> | 2011-12-10 11:07:55 (GMT) |
---|---|---|
committer | Wolfgang Denk <wd@denx.de> | 2012-03-18 19:56:00 (GMT) |
commit | 5ddb118da4cbd34c3c8a0231dedad56ba504699f (patch) | |
tree | 5fb2e7e107427bb6b30a5292283c88c65b42bd24 /include | |
parent | 578ac1e9ba4c79175e69becb28e7157a84eff241 (diff) | |
download | u-boot-5ddb118da4cbd34c3c8a0231dedad56ba504699f.tar.xz |
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 'include')
-rw-r--r-- | include/bootstage.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/bootstage.h b/include/bootstage.h index ddfb07a..63a6435 100644 --- a/include/bootstage.h +++ b/include/bootstage.h @@ -54,5 +54,9 @@ enum bootstage_id { * has occurred. */ void show_boot_progress(int val); +static inline void show_boot_error(int val) +{ + show_boot_progress(-val); +} #endif |