[U-Boot] [PATCH] Less verbose output when loading vxworks 6.x images
Wolfgang Denk
wd at denx.de
Thu Jul 23 22:02:04 CEST 2009
Dear Niklaus Giger,
In message <200907221629.09703.rgetz at blackfin.uclinux.org> Robin Getz wrote:
>
> > +#ifdef DEBUG
> > if (strtab) {
> > printf ("%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);
>
> its better to remove the ifdef, and replace the printf() with debug() (IMHO).
Best regards,
Wolfgang Denk
--
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
"Just think of a computer as hardware you can program."
- Nigel de la Tierre
More information about the U-Boot
mailing list