add missing space
PATCH 1/1 add missing space
Cosmetic patch for first U-Boot line that gets printed.
---
include/version.h +1 -1
@@ -35,7 +35,7 @@#endif #define U_BOOT_VERSION_STRING U_BOOT_VERSION " (" U_BOOT_DATE " - " \ - U_BOOT_TIME ")" CONFIG_IDENT_STRING + U_BOOT_TIME ") " CONFIG_IDENT_STRING#ifndef __ASSEMBLY__extern const char version_string[];
PATCH 1/1 add missing space
Hi Luka,
Quoted 9 lines · On Fri, 16 Dec 2011 00:32:15 +0100 Luka Perkov <[email protected]> wrote:
Cosmetic patch for first U-Boot line that gets printed.
Signed-off-by Luka Perkov <[email protected]>---
include/version.h +0
-0
include/version.h line 38
Quoted 5 lines
include/version.h +1
-1@@ -35,7 +35,7 @@#endif #define U_BOOT_VERSION_STRING U_BOOT_VERSION " (" U_BOOT_DATE " - " \ - U_BOOT_TIME ")" CONFIG_IDENT_STRING + U_BOOT_TIME ") " CONFIG_IDENT_STRING
This change is not needed I think. Most boards defining CONFIG_IDENT_STRING use either a string starting with new line or strings like " something". So this patch will deface version string. Your CONFIG_IDENT_STRING should be fixed instead.
Thanks,
Anatolij
PATCH 1/1 add missing space
Quoted 6 lines · On Friday 16 December 2011 07:13:47 Anatolij Gustschin wrote:
Quoted 5 lines · On Fri, 16 Dec 2011 00:32:15 +0100 Luka Perkov wrote:
Cosmetic patch for first U-Boot line that gets printed.
include/version.h +0
-0
Quoted 8 lines
include/version.h line 38
Quoted 3 lines
#define
U_BOOT_VERSION_STRINGU_BOOT_VERSION" ("U_BOOT_DATE" - " \include/version.h +1
-1-U_BOOT_TIME ")" CONFIG_IDENT_STRING +U_BOOT_TIME ") " CONFIG_IDENT_STRING This change is not needed I think. Most boards defining
CONFIG_IDENT_STRINGuse either a string starting with new line or strings like " something". So this patch will deface version string. YourCONFIG_IDENT_STRINGshould be fixed instead.
+1
-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/20111216/f2734976/attachment.pgp>
PATCH 1/1 add missing space
Quoted 16 lines · Mike Frysinger
Quoted 6 lines · On Friday 16 December 2011 07:13:47 Anatolij Gustschin wrote:
Quoted 5 lines · On Fri, 16 Dec 2011 00:32:15 +0100 Luka Perkov wrote:
Cosmetic patch for first U-Boot line that gets printed.
include/version.h +0
-0Quoted 8 lines
include/version.h
Quoted 3 lines
#define
U_BOOT_VERSION_STRINGU_BOOT_VERSION" ("U_BOOT_DATE" - " \include/version.h +1
-1-U_BOOT_TIME ")" CONFIG_IDENT_STRING +U_BOOT_TIME ") " CONFIG_IDENT_STRING This change is not needed I think. Most boards defining
CONFIG_IDENT_STRINGuse either a string starting with new line or strings like " something". So this patch will deface version string. YourCONFIG_IDENT_STRINGshould be fixed instead.
Quoted 2 lines
+1
-mike
Ok, thanks for pointing this out. I guess that something like patch bellow is not acceptable?
# grep CONFIG_IDENT_STRING * -r | grep '" ' | wc -l 41
Bye,
Luka
include/configs/GEN860T.h +2 -2
@@ -41,9 +41,9 @@* Identify the board */ #if !defined(CONFIG_SC ) -#define CONFIG_IDENT_STRING " B2" +#define CONFIG_IDENT_STRING "B2"#else -#define CONFIG_IDENT_STRING " SC" +#define CONFIG_IDENT_STRING "SC"#endif /*
include/configs/IVML24.h +3 -3
@@ -39,11 +39,11 @@#define CONFIG_SYS_TEXT_BASE 0xFF000000#if defined (CONFIG_IVML24_16M ) -# define CONFIG_IDENT_STRING " IVML24" +# define CONFIG_IDENT_STRING "IVML24"#elif defined (CONFIG_IVML24_32M ) -# define CONFIG_IDENT_STRING " IVML24_128" +# define CONFIG_IDENT_STRING "IVML24_128"#elif defined (CONFIG_IVML24_64M ) -# define CONFIG_IDENT_STRING " IVML24_256" +# define CONFIG_IDENT_STRING "IVML24_256"#endif #define CONFIG_8xx_CONS_SMC1 1/* Console is on SMC1 */
include/configs/IVMS8.h +3 -3
@@ -39,11 +39,11 @@#define CONFIG_SYS_TEXT_BASE 0xFF000000#if defined (CONFIG_IVMS8_16M ) -# define CONFIG_IDENT_STRING " IVMS8" +# define CONFIG_IDENT_STRING "IVMS8"#elif defined (CONFIG_IVMS8_32M ) -# define CONFIG_IDENT_STRING " IVMS8_128" +# define CONFIG_IDENT_STRING "IVMS8_128"#elif defined (CONFIG_IVMS8_64M ) -# define CONFIG_IDENT_STRING " IVMS8_256" +# define CONFIG_IDENT_STRING "IVMS8_256"#endif #define CONFIG_8xx_CONS_SMC1 1/* Console is on SMC1 */
include/configs/KAREF.h +1 -1
@@ -52,7 +52,7 @@#define CONFIG_VERY_BIG_RAM 1#define CONFIG_VERSION_VARIABLE -#define CONFIG_IDENT_STRING " Sandburst Kamino Reference Design" +#define CONFIG_IDENT_STRING "Sandburst Kamino Reference Design"/*----------------------------------------------------------------------- * Base addresses -- Note these are effective addresses where the
include/configs/METROBOX.h +1 -1
@@ -118,7 +118,7 @@#define CONFIG_VERY_BIG_RAM 1#define CONFIG_VERSION_VARIABLE -#define CONFIG_IDENT_STRING " Sandburst Metrobox" +#define CONFIG_IDENT_STRING "Sandburst Metrobox"/*----------------------------------------------------------------------- * Base addresses -- Note these are effective addresses where the
include/configs/TOP860.h +1 -1
@@ -57,7 +57,7 @@#define CONFIG_SYS_TEXT_BASE 0x80000000#undef CONFIG_WATCHDOG/* watchdog disabled */ -#define CONFIG_IDENT_STRING " EMK TOP860" +#define CONFIG_IDENT_STRING "EMK TOP860"/*----------------------------------------------------------------------- * CLOCK settings
include/configs/WUH405.h +1 -1
@@ -32,7 +32,7 @@* High Level Configuration Options * (easy to change) */ -#define CONFIG_IDENT_STRING " $Name: $" +#define CONFIG_IDENT_STRING "$Name: $"#define CONFIG_405EP 1/* This is a PPC405 CPU */ #define CONFIG_4xx 1/* ...member of PPC4xx family */
include/configs/dlvision-10g.h +1 -1
@@ -34,7 +34,7 @@* Include common defines/options for all AMCC eval boards */ #define CONFIG_HOSTNAME dlvsion-10g -#define CONFIG_IDENT_STRING " dlvision-10g 0.02" +#define CONFIG_IDENT_STRING "dlvision-10g 0.02"#include "amcc-common.h" #define CONFIG_BOARD_EARLY_INIT_F /* call board_early_init_f */
include/configs/dlvision.h +1 -1
@@ -34,7 +34,7 @@* Include common defines/options for all AMCC eval boards */ #define CONFIG_HOSTNAME dlvision -#define CONFIG_IDENT_STRING " dlvision 0.01" +#define CONFIG_IDENT_STRING "dlvision 0.01"#include "amcc-common.h" #define CONFIG_BOARD_EARLY_INIT_F /* call board_early_init_f */
include/configs/eb_cpux9k2.h +1 -1
@@ -34,7 +34,7 @@#define USE_920T_MMU #define CONFIG_VERSION_VARIABLE -#define CONFIG_IDENT_STRING " on EB+CPUx9K2" +#define CONFIG_IDENT_STRING "on EB+CPUx9K2"#include <asm/hardware.h> /* needed for port definitions */
include/configs/edminiv2.h +1 -1
@@ -32,7 +32,7 @@* Version number information */ -#define CONFIG_IDENT_STRING " EDMiniV2" +#define CONFIG_IDENT_STRING "EDMiniV2"/* * High Level Configuration Options (easy to change)
include/configs/intip.h +2 -2
@@ -37,10 +37,10 @@#define CONFIG_460EX 1/* Specific PPC460EX */ #ifdef CONFIG_DEVCONCENTER #define CONFIG_HOSTNAME devconcenter -#define CONFIG_IDENT_STRING " devconcenter 0.05" +#define CONFIG_IDENT_STRING "devconcenter 0.05"#else #define CONFIG_HOSTNAME intip -#define CONFIG_IDENT_STRING " intip 0.05" +#define CONFIG_IDENT_STRING "intip 0.05"#endif #define CONFIG_440 1#define CONFIG_4xx 1/* ... PPC4xx family */
include/configs/io.h +1 -1
@@ -34,7 +34,7 @@* Include common defines/options for all AMCC eval boards */ #define CONFIG_HOSTNAME io -#define CONFIG_IDENT_STRING " io 0.04" +#define CONFIG_IDENT_STRING "io 0.04"#include "amcc-common.h" #define CONFIG_BOARD_EARLY_INIT_F /* call board_early_init_f */
include/configs/io64.h +1 -1
@@ -53,7 +53,7 @@* Include common defines/options for all AMCC eval boards */ #define CONFIG_HOSTNAME io64 -#define CONFIG_IDENT_STRING " io64 0.01" +#define CONFIG_IDENT_STRING "io64 0.01"#include "amcc-common.h" #define CONFIG_BOARD_EARLY_INIT_F
include/configs/iocon.h +1 -1
@@ -34,7 +34,7 @@* Include common defines/options for all AMCC eval boards */ #define CONFIG_HOSTNAME iocon -#define CONFIG_IDENT_STRING " iocon 0.03" +#define CONFIG_IDENT_STRING "iocon 0.03"#include "amcc-common.h" #define CONFIG_BOARD_EARLY_INIT_F /* call board_early_init_f */
include/configs/lacie_kw.h +4 -4
@@ -23,16 +23,16 @@*/ #if defined(CONFIG_INETSPACE_V2 )#define CONFIG_MACH_TYPE MACH_TYPE_INETSPACE_V2 -#define CONFIG_IDENT_STRING " IS v2" +#define CONFIG_IDENT_STRING "IS v2"#elif defined(CONFIG_NETSPACE_V2 )#define CONFIG_MACH_TYPE MACH_TYPE_NETSPACE_V2 -#define CONFIG_IDENT_STRING " NS v2" +#define CONFIG_IDENT_STRING "NS v2"#elif defined(CONFIG_NETSPACE_MAX_V2 )#define CONFIG_MACH_TYPE MACH_TYPE_NETSPACE_MAX_V2 -#define CONFIG_IDENT_STRING " NS Max v2" +#define CONFIG_IDENT_STRING "NS Max v2"#elif defined(CONFIG_NET2BIG_V2 )#define CONFIG_MACH_TYPE MACH_TYPE_NET2BIG_V2 -#define CONFIG_IDENT_STRING " 2Big v2" +#define CONFIG_IDENT_STRING "2Big v2"#else #error "Unknown board"#endif
include/configs/linkstation.h +3 -3
@@ -84,11 +84,11 @@*/ #if defined(CONFIG_HLAN ) || defined(CONFIG_LAN ) -#define CONFIG_IDENT_STRING " LinkStation / KuroBox" +#define CONFIG_IDENT_STRING "LinkStation / KuroBox"#elif defined(CONFIG_HGLAN ) -#define CONFIG_IDENT_STRING " LinkStation HG / KuroBox HG" +#define CONFIG_IDENT_STRING "LinkStation HG / KuroBox HG"#elif defined(CONFIG_HTGL ) -#define CONFIG_IDENT_STRING " TeraStation" +#define CONFIG_IDENT_STRING "TeraStation"#else #error No LinkStation model defined#endif
include/configs/lwmon5.h +1 -1
@@ -27,7 +27,7 @@/* * Liebherr extra version info */ -#define CONFIG_IDENT_STRING " - v2.0" +#define CONFIG_IDENT_STRING "- v2.0"/* * High Level Configuration Options
include/configs/mpc7448hpc2.h +1 -1
@@ -45,7 +45,7 @@#define CONFIG_SYS_TEXT_BASE 0xFF000000#define CONFIG_SYS_BOARD_NAME "MPC7448 HPC II" -#define CONFIG_IDENT_STRING " Freescale MPC7448 HPC II" +#define CONFIG_IDENT_STRING "Freescale MPC7448 HPC II"#define CONFIG_SYS_OCN_CLK 133000000/* 133 MHz */ #define CONFIG_SYS_BUS_CLK 133000000
include/configs/origen.h +1 -1
@@ -139,7 +139,7 @@/* FLASH and environment organization */ #define CONFIG_SYS_NO_FLASH 1#undef CONFIG_CMD_IMLS -#define CONFIG_IDENT_STRING " for ORIGEN" +#define CONFIG_IDENT_STRING "for ORIGEN"#ifdef CONFIG_USE_IRQ #define CONFIG_STACKSIZE_IRQ (4*1024)/* IRQ stack */
include/configs/smdk6400.h +1 -1
@@ -206,7 +206,7 @@* SMDK6400 board specific data */ -#define CONFIG_IDENT_STRING " for SMDK6400" +#define CONFIG_IDENT_STRING "for SMDK6400"/* base address for uboot */ #define CONFIG_SYS_PHY_UBOOT_BASE (CONFIG_SYS_SDRAM_BASE + 0x07e00000)
include/configs/smdkc100.h +1 -1
@@ -206,7 +206,7 @@#define CONFIG_SYS_NO_FLASH 1#define CONFIG_SYS_MONITOR_LEN (256 << 10)/* 256 KiB */ -#define CONFIG_IDENT_STRING " for SMDKC100" +#define CONFIG_IDENT_STRING "for SMDKC100"#if !defined(CONFIG_NAND_SPL ) && (CONFIG_SYS_TEXT_BASE >=0xc0000000 )#define CONFIG_ENABLE_MMU
include/configs/smdkv310.h +1 -1
@@ -136,7 +136,7 @@/* FLASH and environment organization */ #define CONFIG_SYS_NO_FLASH 1#undef CONFIG_CMD_IMLS -#define CONFIG_IDENT_STRING " for SMDKC210/V310" +#define CONFIG_IDENT_STRING "for SMDKC210/V310"#ifdef CONFIG_USE_IRQ #define CONFIG_STACKSIZE_IRQ (4*1024)/* IRQ stack */
include/configs/utx8245.h +1 -1
@@ -54,7 +54,7 @@#define DEBUG 1 -#define CONFIG_IDENT_STRING " [UTX5] " +#define CONFIG_IDENT_STRING "[UTX5]"#define CONFIG_CONS_INDEX 1#define CONFIG_BAUDRATE 57600
include/version.h +1 -1
@@ -35,7 +35,7 @@#endif #define U_BOOT_VERSION_STRING U_BOOT_VERSION " (" U_BOOT_DATE " - " \ - U_BOOT_TIME ")" CONFIG_IDENT_STRING + U_BOOT_TIME ") " CONFIG_IDENT_STRING#ifndef __ASSEMBLY__extern const char version_string[];
PATCH 1/1 add missing space
Quoted 19 lines · On Friday 16 December 2011 18:43:18 Luka Perkov wrote:
Quoted 18 lines · Mike Frysinger
Quoted 16 lines · On Friday 16 December 2011 07:13:47 Anatolij Gustschin wrote:
include/version.h line 38
Quoted 10 lines · On Fri, 16 Dec 2011 00:32:15 +0100 Luka Perkov wrote:
Cosmetic patch for first U-Boot line that gets printed.
include/version.h +1
-1#define U_BOOT_VERSION_STRING U_BOOT_VERSION " (" U_BOOT_DATE " - " \ -U_BOOT_TIME ")" CONFIG_IDENT_STRING +U_BOOT_TIME ") " CONFIG_IDENT_STRING This change is not needed I think. Most boards defining
CONFIG_IDENT_STRINGuse either a string starting with new line or strings like " something". So this patch will deface version string. YourCONFIG_IDENT_STRINGshould be fixed instead.
Quoted 5 lines
Quoted 2 lines
+1
-mikeOk, thanks for pointing this out. I guess that something like patch bellow is not acceptable?
no, because you're adding a useless space for everyone who doesn't define CONFIG_IDENT_STRING :)
-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/20111216/6649a8e5/attachment.pgp>
PATCH 1/1 add missing space
In reply to Luka PerkovDear Luka Perkov,
Quoted 3 lines · In message <[email protected]> you wrote:
Ok, thanks for pointing this out. I guess that something like patch bellow is not acceptable?
"acceptable" is somethign that is a bit hard to define.
Let's say, there is no real incentive to apply this patch. Instead of leaving all formatting options open to the end user (including the option to directoy attach his custom string to the standard output) this would dictate that there always has to be a space, and even boards which do not want to use a custom sting would output the space.
Sorry, this makes no sense to me.
I'm not going to accept this.
Best regards,
Wolfgang Denk
Signature · 5 lines
DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
The price of curiosity is a terminal experience.
- Terry Pratchett, _The Dark Side of the Sun_