public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: Mike Frysinger <vapier@gentoo.org>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH/RFC v4] unify version_string
Date: Wed, 29 Jun 2011 19:18:59 -0400	[thread overview]
Message-ID: <201106291919.01019.vapier@gentoo.org> (raw)
In-Reply-To: <1309386769-70108-1-git-send-email-andreas.devel@googlemail.com>

On Wednesday, June 29, 2011 18:32:49 Andreas Bie?mann wrote:
> --- a/arch/arm/lib/board.c
> +++ b/arch/arm/lib/board.c
>
> -const char version_string[] =
> -	U_BOOT_VERSION" (" U_BOOT_DATE " - " U_BOOT_TIME ")"CONFIG_IDENT_STRING;
> +const char * const version_string = U_BOOT_VERSION_STRING;

two things:
 - why the change to a pointer from an array ?  it wastes a pointer
 - this should be in a common file somewhere marked weak that way the people 
who do it normal (everyone but ppc?) dont have to duplicate it at all, and the 
people who do it oddly (ppc) can still keep doing what they're doing

const char __weak version_string[] = U_BOOT_VERSION_STRING;

> --- a/include/version.h
> +++ b/include/version.h
> 
> +#define U_BOOT_VERSION_STRING U_BOOT_VERSION " (" U_BOOT_DATE " - " \
> +	U_BOOT_TIME ")" CONFIG_IDENT_STRING;

pretty sure that trailing semi-colon doesn't belong
-mike
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 836 bytes
Desc: This is a digitally signed message part.
Url : http://lists.denx.de/pipermail/u-boot/attachments/20110629/76f07b0e/attachment.pgp 

  reply	other threads:[~2011-06-29 23:18 UTC|newest]

Thread overview: 28+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-06-24  8:47 [U-Boot] [PATCH/RFC] unify version_string Andreas Bießmann
2011-06-24 12:18 ` Wolfgang Denk
2011-06-24 17:43   ` Mike Frysinger
2011-06-24 19:48     ` Andreas Bießmann
2011-06-24 20:10       ` Wolfgang Denk
2011-06-29 22:32         ` [U-Boot] [PATCH/RFC v4] " Andreas Bießmann
2011-06-29 23:18           ` Mike Frysinger [this message]
2011-06-30 21:27             ` [U-Boot] [PATCH/RFC v5] " Andreas Bießmann
2011-06-30 22:27               ` Mike Frysinger
2011-07-18 18:24               ` [U-Boot] [PATCH v6] " Andreas Bießmann
2011-07-18 18:27                 ` Mike Frysinger
2011-07-28  7:30                 ` Andreas Bießmann
2011-07-28 15:23                 ` Wolfgang Denk
2011-07-28 15:30                   ` Wolfgang Denk
2011-07-28 16:19                 ` [U-Boot] [PATCH v7] " andreas.devel at googlemail.com
2011-07-28 20:21                   ` Wolfgang Denk
2011-07-28 21:09                   ` Wolfgang Denk
2011-07-29  7:05                     ` Andreas Bießmann
2011-07-29  8:24                       ` Wolfgang Denk
2011-07-31 10:35                       ` [U-Boot] [PATCH] linkstation: fix warning: "CONFIG_IDENT_STRING" redefined Wolfgang Denk
2011-09-05  7:43                         ` Wolfgang Denk
2011-07-29 12:42                   ` [U-Boot] [PATCH] Constify getenv(), setenv() and hash code functions Wolfgang Denk
2011-07-29 23:38                     ` Wolfgang Denk
2011-06-24 20:07     ` [U-Boot] [PATCH/RFC] unify version_string Wolfgang Denk
2011-06-24 20:52       ` Mike Frysinger
2011-06-24 12:34 ` [U-Boot] [PATCH/RFC v2] " Andreas Bießmann
2011-06-24 13:37   ` Wolfgang Denk
2011-06-24 20:01 ` [U-Boot] [PATCH/RFC v3] " Andreas Bießmann

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=201106291919.01019.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