See patch
--
coresystems GmbH • Brahmsstr. 16 • D-79104 Freiburg i. Br.
Tel.: +49 761 7668825 • Fax: +49 761 7664613
Email: [EMAIL PROTECTED] • http://www.coresystems.de/
This patch makes a some elf debugging information available at log level
debug instead of spew. It also fixes a typo.
Signed-off-by: Stefan Reinauer <[EMAIL PROTECTED]>
Index: src/boot/elfboot.c
===================================================================
--- src/boot/elfboot.c (revision 2606)
+++ src/boot/elfboot.c (working copy)
@@ -627,7 +627,7 @@
for(i = 0; i < ELF_HEAD_SIZE - (sizeof(Elf_ehdr) + sizeof(Elf_phdr)); i+=16) {
ehdr = (Elf_ehdr *)(&header[i]);
if (memcmp(ehdr->e_ident, ELFMAG, 4) != 0) {
- printk_spew("NO header at %d\n", i);
+ printk_debug("No header at %d\n", i);
continue;
}
printk_debug("Found ELF candidate at offset %d\n", i);
@@ -646,12 +646,12 @@
}
ehdr = 0;
}
- printk_spew("header_offset is %d\n", header_offset);
+ printk_debug("header_offset is %d\n", header_offset);
if (header_offset == -1) {
goto out;
}
- printk_spew("Try to load at offset 0x%x\n", header_offset);
+ printk_debug("Try to load at offset 0x%x\n", header_offset);
result = elfload(mem,
header + header_offset , ELF_HEAD_SIZE - header_offset);
out:
@@ -659,7 +659,7 @@
/* Shutdown the stream device */
stream_fini();
- printk_err("Cannot Load ELF Image\n");
+ printk_err("Can not load ELF Image.\n");
post_code(0xff);
}
--
linuxbios mailing list
[email protected]
http://www.linuxbios.org/mailman/listinfo/linuxbios