[PATCH] missing newline/carrige return in ppc64 zImage

Olaf Hering olh at suse.de
Thu Mar 17 20:21:04 EST 2005

Some eyecandy for zImage and zImage.initrd.
Most OF implementations do not print a newline after their last line
of output, so the "zImage starting..." appears right after the last
number or netboot output.
A zImage.initrd misses a carrige return to avoid a staircase effect.

Tested on JS20.

Signed-off-by: Olaf Hering <olh at suse.de>

Index: linux-2.6.11-olh/arch/ppc64/boot/main.c
--- linux-2.6.11-olh.orig/arch/ppc64/boot/main.c
+++ linux-2.6.11-olh/arch/ppc64/boot/main.c
@@ -110,7 +110,7 @@ void start(unsigned long a1, unsigned lo
 	if (getprop(chosen_handle, "stdin", &stdin, sizeof(stdin)) != 4)
-	printf("zImage starting: loaded at 0x%x\n\r", (unsigned)_start);
+	printf("\n\rzImage starting: loaded at 0x%x\n\r", (unsigned)_start);
 	 * Now we try to claim some memory for the kernel itself
@@ -149,7 +149,7 @@ void start(unsigned long a1, unsigned lo
 		printf("initial ramdisk moving 0x%lx <- 0x%lx (%lx bytes)\n\r",
 		       initrd.addr, (unsigned long)_initrd_start, initrd.size);
 		memmove((void *)initrd.addr, (void *)_initrd_start, initrd.size);
-		printf("initrd head: 0x%lx\n", *((u32 *)initrd.addr));
+		printf("initrd head: 0x%lx\n\r", *((u32 *)initrd.addr));
 	/* Eventually gunzip the kernel */

More information about the Linuxppc64-dev mailing list