From: Jerry Van Baren <gerald.vanbaren@ge.com>
To: u-boot@lists.denx.de
Subject: [U-Boot-Users] [PATCH 6/6] [new uImage] Move FDT error printing to common fdt_error() routine
Date: Wed, 23 Jan 2008 10:40:20 -0500 [thread overview]
Message-ID: <47975FE4.5060308@ge.com> (raw)
In-Reply-To: <20080123150035.25280.62015.stgit@zion.izotz.org>
Marian Balakowicz wrote:
> FDT error handling in PPC do_bootm_linux() shares the same message format.
> This patch moves error message printing to a helper fdt_error() routine.
>
> Signed-off-by: Marian Balakowicz <m8@semihalf.com>
> ---
>
> lib_ppc/bootm.c | 50 ++++++++++++++++++++++++--------------------------
> 1 files changed, 24 insertions(+), 26 deletions(-)
[snip]
> @@ -310,8 +306,7 @@ do_bootm_linux(cmd_tbl_t *cmdtp, int flag,
>
> of_flat_tree = (char *)image_get_load (fdt_hdr);
> } else {
> - puts ("Did not find a flat Flat Device Tree.\n"
> - "Must RESET the board to recover.\n");
> + fdt_error ("Did not find a flat Flat Device Tree");
Ouch, I messed that one up pretty badly in the original. Should be
"Did not find a Flattened Device Tree"
s/flat Flat/Flattened/
[snip]
> #endif
> #ifdef CONFIG_OF_HAS_BD_T
> if (fdt_bd_t(of_flat_tree) < 0) {
> - puts ("ERROR: /bd_t node create failed - "
> - "must RESET the board to recover.\n");
> + fdte_error ("/bd_t node create failed");
Typo s/fdte_error/fdt_error/
[snip]
FWIIW, with the above changes...
Acked-by: Gerald Van Baren <vanbaren@cideas.com>
Good improvement, thanks.
gvb
next prev parent reply other threads:[~2008-01-23 15:40 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-01-23 14:43 [U-Boot-Users] [PATCH 0/6] [new uImage] patchset2 - cleanup cont Marian Balakowicz
2008-01-23 14:44 ` [U-Boot-Users] [PATCH 1/6] [new uImage] Rename architecture specific bootm code files Marian Balakowicz
2008-01-28 22:38 ` Jean-Christophe PLAGNIOL-VILLARD
2008-01-23 14:44 ` [U-Boot-Users] [PATCH 2/6] [new uImage] Use image API in SH do_bootm_linux() routine Marian Balakowicz
2008-01-23 14:44 ` [U-Boot-Users] [PATCH 3/6] [new uImage] Remove OF_FLAT_TREE support from PPC bootm code Marian Balakowicz
2008-01-23 14:44 ` [U-Boot-Users] [PATCH 4/6] [new uImage] Remove standalone applications handling from boootm Marian Balakowicz
[not found] ` <c166aa9f0801230916s79a4d690mea3fb23776cc8c22@mail.gmail.com>
[not found] ` <4798570C.5000408@semihalf.com>
2008-01-24 23:47 ` Andrew Dyer
2008-01-23 15:00 ` [U-Boot-Users] [PATCH 5/6] [new uImage] Factor out common routines for getting os/arch/type/comp names Marian Balakowicz
2008-01-23 15:00 ` [U-Boot-Users] [PATCH 6/6] [new uImage] Move FDT error printing to common fdt_error() routine Marian Balakowicz
2008-01-23 15:40 ` Jerry Van Baren [this message]
2008-01-25 4:51 ` [U-Boot-Users] [PATCH 0/6] [new uImage] patchset2 - cleanup cont Kumar Gala
2008-01-31 15:04 ` Marian Balakowicz
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=47975FE4.5060308@ge.com \
--to=gerald.vanbaren@ge.com \
--cc=u-boot@lists.denx.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.