
23 Jul
2009
23 Jul
'09
10:02 p.m.
Dear Niklaus Giger,
In message 200907221629.09703.rgetz@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@denx.de
"Just think of a computer as hardware you can program."
- Nigel de la Tierre