* [U-Boot] [PATCH] vxworks: Make loading vxworks less verbose
@ 2009-09-23 6:22 Niklaus Giger
2009-09-23 8:31 ` Niklaus Giger
2009-09-23 11:31 ` Tom
0 siblings, 2 replies; 4+ messages in thread
From: Niklaus Giger @ 2009-09-23 6:22 UTC (permalink / raw)
To: u-boot
Newer vxWorks 6.x images have over 20 different C++ segments.
This fills up the output with rarely used information.
Signed-off-by: Niklaus Giger <niklaus.giger@netstal.com>
---
common/cmd_elf.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/common/cmd_elf.c b/common/cmd_elf.c
index 63f6fe7..bf7dd63 100644
--- a/common/cmd_elf.c
+++ b/common/cmd_elf.c
@@ -286,6 +286,7 @@ unsigned long load_elf_image (unsigned long addr)
continue;
}
+#ifdef DEBUG
if (strtab) {
debug("%sing %s @ 0x%08lx (%ld bytes)\n",
(shdr->sh_type == SHT_NOBITS) ?
@@ -294,6 +295,7 @@ unsigned long load_elf_image (unsigned long addr)
(unsigned long) shdr->sh_addr,
(long) shdr->sh_size);
}
+#endif
if (shdr->sh_type == SHT_NOBITS) {
memset ((void *)shdr->sh_addr, 0, shdr->sh_size);
--
1.6.3.3
^ permalink raw reply related [flat|nested] 4+ messages in thread* [U-Boot] [PATCH] vxworks: Make loading vxworks less verbose
2009-09-23 6:22 [U-Boot] [PATCH] vxworks: Make loading vxworks less verbose Niklaus Giger
@ 2009-09-23 8:31 ` Niklaus Giger
2009-09-23 11:37 ` Tom
2009-09-23 11:31 ` Tom
1 sibling, 1 reply; 4+ messages in thread
From: Niklaus Giger @ 2009-09-23 8:31 UTC (permalink / raw)
To: u-boot
Please ignore this patch. Came in by mistake. Functionality already
merged by commit 3c972849f2becbf19c13a24f090d293f37ecf616.
Sorry for the noise.
Best regards
Niklaus
^ permalink raw reply [flat|nested] 4+ messages in thread
* [U-Boot] [PATCH] vxworks: Make loading vxworks less verbose
2009-09-23 6:22 [U-Boot] [PATCH] vxworks: Make loading vxworks less verbose Niklaus Giger
2009-09-23 8:31 ` Niklaus Giger
@ 2009-09-23 11:31 ` Tom
1 sibling, 0 replies; 4+ messages in thread
From: Tom @ 2009-09-23 11:31 UTC (permalink / raw)
To: u-boot
Niklaus Giger wrote:
> Newer vxWorks 6.x images have over 20 different C++ segments.
> This fills up the output with rarely used information.
>
> Signed-off-by: Niklaus Giger <niklaus.giger@netstal.com>
> ---
> common/cmd_elf.c | 2 ++
> 1 files changed, 2 insertions(+), 0 deletions(-)
>
> diff --git a/common/cmd_elf.c b/common/cmd_elf.c
> index 63f6fe7..bf7dd63 100644
> --- a/common/cmd_elf.c
> +++ b/common/cmd_elf.c
> @@ -286,6 +286,7 @@ unsigned long load_elf_image (unsigned long addr)
> continue;
> }
>
> +#ifdef DEBUG
> if (strtab) {
> debug("%sing %s @ 0x%08lx (%ld bytes)\n",
> (shdr->sh_type == SHT_NOBITS) ?
> @@ -294,6 +295,7 @@ unsigned long load_elf_image (unsigned long addr)
> (unsigned long) shdr->sh_addr,
> (long) shdr->sh_size);
> }
> +#endif
I am not sure this will do anything.
From the decl of 'debug'
#ifdef DEBUG
#define debug(fmt,args...) printf (fmt ,##args)
#define debugX(level,fmt,args...) if (DEBUG>=level) printf(fmt,##args);
#else
#define debug(fmt,args...)
#define debugX(level,fmt,args...)
#endif /* DEBUG */
debug is already hidden by the DEBUG define.
Maybe a better choice would be to switch to debugX
Tom
>
> if (shdr->sh_type == SHT_NOBITS) {
> memset ((void *)shdr->sh_addr, 0, shdr->sh_size);
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2009-09-23 11:37 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-09-23 6:22 [U-Boot] [PATCH] vxworks: Make loading vxworks less verbose Niklaus Giger
2009-09-23 8:31 ` Niklaus Giger
2009-09-23 11:37 ` Tom
2009-09-23 11:31 ` Tom
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox