mirror of
https://github.com/linux-sunxi/u-boot-sunxi.git
synced 2024-02-12 11:16:03 +08:00
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
@ -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
|
||||
|
Reference in New Issue
Block a user