Patchwork [U-Boot,2/4] bootstage: get more BOOTSTAGE_ID* in show_boot_progress()

login
register
mail settings
Submitter Heiko Schocher
Date Aug. 5, 2013, 2 p.m.
Message ID <1375711238-22816-3-git-send-email-hs@denx.de>
Download mbox | patch
Permalink /patch/264684/
State Accepted
Delegated to: Tom Rini
Headers show

Comments

Heiko Schocher - Aug. 5, 2013, 2 p.m.
In case CONFIG_BOOTSTAGE is not defined, call from bootstage_mark_name()
show_boot_progress(), so get more BOOTSTAGE_ID* ids in show_boot_progress()
if CONFIG_BOOTSTAGE is not defined.

Signed-off-by: Heiko Schocher <hs@denx.de>
Cc: Simon Glass <sjg@chromium.org>
Cc: Tom Rini <trini@ti.com>
Cc: Albert Aribaud <albert.u.boot@aribaud.net>
---
 include/bootstage.h | 1 +
 1 Datei geändert, 1 Zeile hinzugefügt(+)
Simon Glass - Aug. 6, 2013, 4:13 p.m.
On Mon, Aug 5, 2013 at 8:00 AM, Heiko Schocher <hs@denx.de> wrote:

> In case CONFIG_BOOTSTAGE is not defined, call from bootstage_mark_name()
> show_boot_progress(), so get more BOOTSTAGE_ID* ids in show_boot_progress()
> if CONFIG_BOOTSTAGE is not defined.
>
> Signed-off-by: Heiko Schocher <hs@denx.de>
> Cc: Simon Glass <sjg@chromium.org>
> Cc: Tom Rini <trini@ti.com>
> Cc: Albert Aribaud <albert.u.boot@aribaud.net>
>

Acked-by: Simon Glass <sjg@chromium.org>


> ---
>  include/bootstage.h | 1 +
>  1 Datei geändert, 1 Zeile hinzugefügt(+)
>
> diff --git a/include/bootstage.h b/include/bootstage.h
> index 25b4e07..87bf906 100644
> --- a/include/bootstage.h
> +++ b/include/bootstage.h
> @@ -353,6 +353,7 @@ static inline ulong bootstage_error(enum bootstage_id
> id)
>
>  static inline ulong bootstage_mark_name(enum bootstage_id id, const char
> *name)
>  {
> +       show_boot_progress(id);
>         return 0;
>  }
>
> --
> 1.7.11.7
>
>

Patch

diff --git a/include/bootstage.h b/include/bootstage.h
index 25b4e07..87bf906 100644
--- a/include/bootstage.h
+++ b/include/bootstage.h
@@ -353,6 +353,7 @@  static inline ulong bootstage_error(enum bootstage_id id)
 
 static inline ulong bootstage_mark_name(enum bootstage_id id, const char *name)
 {
+	show_boot_progress(id);
 	return 0;
 }