From mboxrd@z Thu Jan 1 00:00:00 1970 From: Tom Date: Wed, 23 Sep 2009 06:31:46 -0500 Subject: [U-Boot] [PATCH] vxworks: Make loading vxworks less verbose In-Reply-To: <1253686951-30678-1-git-send-email-niklaus.giger@netstal.com> References: <1253686951-30678-1-git-send-email-niklaus.giger@netstal.com> Message-ID: <4ABA0722.8070809@windriver.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de 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 > --- > 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);