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 --- include/bootstage.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'include') diff --git a/include/bootstage.h b/include/bootstage.h index ddfb07a225..63a6435c2c 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 -- cgit v1.2.3