From: Mike Frysinger <vapier@gentoo.org>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH 1/1 V3] cmd_bdinfo: move implementation to arch instead of common
Date: Sat, 21 Feb 2009 11:07:19 -0500 [thread overview]
Message-ID: <200902211107.20286.vapier@gentoo.org> (raw)
In-Reply-To: <1235205980-20534-1-git-send-email-plagnioj@jcrosoft.com>
On Saturday 21 February 2009 03:46:20 Jean-Christophe PLAGNIOL-VILLARD wrote:
> --- a/common/cmd_bdinfo.c
> +++ b/common/cmd_bdinfo.c
> +void board_bdinfo(cmd_tbl_t *, int, int, char **) __attribute__((weak));
> +void cpu_bdinfo(cmd_tbl_t *, int, int, char **) __attribute__((weak));
since other people are expected to implement these functions, better to put
the prototype into a common header so that the implementation and the caller
agree on the function signature. the compiler can check this way.
> +int do_bdinfo(cmd_tbl_t *cmdtp, int flag, int argc, char *argv[])
> +{
> + /* call arch bdinfo */
> + arch_bdinfo(cmdtp, flag, argc, argv);
> +
> + /* call soc bdinfo */
> + if(cpu_bdinfo) {
> + printf("CPU Info\n");
> + cpu_bdinfo(cmdtp, flag, argc, argv);
> + }
> +
> + /* call board bdinfo */
> + if(board_bdinfo) {
> + printf("Board Info\n");
> + board_bdinfo(cmdtp, flag, argc, argv);
> + }
there should be a space after that "if". i would use "puts" instead of
"printf" since you arent using any format strings.
otherwise, the Blackfin part looks fine, thanks
Acked-by: Mike Frysinger <vapier@gentoo.org>
-mike
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 835 bytes
Desc: This is a digitally signed message part.
Url : http://lists.denx.de/pipermail/u-boot/attachments/20090221/ee3caba7/attachment.pgp
next prev parent reply other threads:[~2009-02-21 16:07 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-02-21 8:46 [U-Boot] [PATCH 1/1 V3] cmd_bdinfo: move implementation to arch instead of common Jean-Christophe PLAGNIOL-VILLARD
2009-02-21 9:13 ` Magnus Lilja
2009-02-21 16:02 ` Mike Frysinger
2009-02-21 16:07 ` Mike Frysinger [this message]
2009-02-21 16:13 ` Jean-Christophe PLAGNIOL-VILLARD
2009-02-23 8:22 ` Haavard Skinnemoen
2009-02-23 14:39 ` Mike Frysinger
2009-02-24 5:31 ` Jean-Christophe PLAGNIOL-VILLARD
2009-02-24 5:35 ` [U-Boot] [PATCH 1/2 V4] " Jean-Christophe PLAGNIOL-VILLARD
2009-02-24 5:35 ` [U-Boot] [PATCH 2/2] bdinfo: coding style cleanup Jean-Christophe PLAGNIOL-VILLARD
2009-04-03 21:50 ` [U-Boot] [PATCH 1/2 V4] cmd_bdinfo: move implementation to arch instead of common Wolfgang Denk
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=200902211107.20286.vapier@gentoo.org \
--to=vapier@gentoo.org \
--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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox