[PATCH] Print real error when initramfs gunzip failed

From: Andi Kleen
Date: Fri Oct 29 2004 - 08:09:07 EST



Print the real error when initramfs gunzip failed. gunzip already
sets up message correctly.

Signed-off-by: Andi Kleen <ak@xxxxxxx>

Index: linux/init/initramfs.c
===================================================================
--- linux.orig/init/initramfs.c 2004-08-15 19:45:53.%N +0200
+++ linux/init/initramfs.c 2004-10-21 19:47:46.%N +0200
@@ -445,8 +445,7 @@
bytes_out = 0;
crc = (ulg)0xffffffffL; /* shift register contents */
makecrc();
- if (gunzip())
- message = "ungzip failed";
+ gunzip();
if (state != Reset)
error("junk in gzipped archive");
this_header = saved_offset + inptr;
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/