diff options
author | H. Peter Anvin <hpa@zytor.com> | 2008-01-04 16:28:36 -0800 |
---|---|---|
committer | H. Peter Anvin <hpa@zytor.com> | 2008-01-04 16:28:36 -0800 |
commit | 8c9d38956e82c3b293f2b19a6bbe941dff4b24c3 (patch) | |
tree | c00daee2b272675491575db312b8d6efff88de80 /reloc/reloc_linux.c | |
parent | 39da9a6fb0b82c93e4d86466fa5a257e419e593c (diff) | |
download | wraplinux-8c9d38956e82c3b293f2b19a6bbe941dff4b24c3.tar.gz wraplinux-8c9d38956e82c3b293f2b19a6bbe941dff4b24c3.tar.xz wraplinux-8c9d38956e82c3b293f2b19a6bbe941dff4b24c3.zip |
Remove output routine from the reloc program, making it smaller
Save a fair bit of space in the reloc program by omitting the console
output routine and printf code. They were useful for debugging, though.
Diffstat (limited to 'reloc/reloc_linux.c')
-rw-r--r-- | reloc/reloc_linux.c | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/reloc/reloc_linux.c b/reloc/reloc_linux.c index 79655c1..1bf6f44 100644 --- a/reloc/reloc_linux.c +++ b/reloc/reloc_linux.c @@ -37,7 +37,6 @@ #include "reloc.h" #include "setup.h" -#include "conio.h" static uint32_t initrd_len, initrd_addr; static uint64_t max_addr; @@ -46,8 +45,6 @@ static int initrd_fit(uint32_t base, uint32_t end) { uint64_t ibase; - printf("Fit: base = %08x, end = %08x\n", base, end); - if (end <= base) return -1; /* Invalid */ @@ -66,7 +63,6 @@ static int initrd_fit(uint32_t base, uint32_t end) if (initrd_addr < ibase) { initrd_addr = ibase; /* This is a better one... */ - printf("Best: initrd_addr = %08x\n", initrd_addr); } return 0; @@ -178,9 +174,6 @@ int main(void) return -1; /* Move the initrd into place */ - printf("Moving initrd: 0x%08x -> 0x%08x (0x%08x bytes)\n", - startup_info.rd_addr, initrd_addr, startup_info.rd_len); - memmove((void *)initrd_addr, (void *)startup_info.rd_addr, startup_info.rd_len); |