Subject: [PATCH] x86, boot: Add more debug printout in compressed/misc.c with support that use printf.c in x86 setup code. print out more info for debug info. Signed-off-by: Yinghai Lu --- arch/x86/boot/compressed/misc.c | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) Index: linux-2.6/arch/x86/boot/compressed/misc.c =================================================================== --- linux-2.6.orig/arch/x86/boot/compressed/misc.c +++ linux-2.6/arch/x86/boot/compressed/misc.c @@ -287,7 +287,7 @@ static void parse_elf(void *output) return; } - debug_putstr("Parsing ELF... "); + debug_putstr("Parsing ELF...\n"); phdrs = malloc(sizeof(*phdrs) * ehdr.e_phnum); if (!phdrs) @@ -307,6 +307,11 @@ static void parse_elf(void *output) dest = (void *)(phdr->p_paddr); #endif memmove(dest, output + phdr->p_offset, phdr->p_filesz); + debug_printf(" parse_elf: [0x%010lx-0x%010lx] <=== [0x%010lx-0x%010lx]\n", + (unsigned long)dest, + (unsigned long)dest + phdr->p_filesz - 1, + (unsigned long)output + phdr->p_offset, + (unsigned long)output + phdr->p_offset + phdr->p_filesz - 1); break; default: /* Ignore other PT_* */ break; } @@ -431,6 +436,11 @@ asmlinkage __visible void *extract_kerne error("Wrong destination address"); #endif + debug_printf(" decompress: [0x%010lx-0x%010lx] <=== [0x%010lx-0x%010lx]\n", + (unsigned long)output, + (unsigned long)output + output_len - 1, + (unsigned long)input_data, + (unsigned long)input_data + input_len - 1); debug_putstr("\nDecompressing Linux... "); __decompress(input_data, input_len, NULL, NULL, output, output_len, NULL, error);