Print real error when initramfs gunzip failed
PATCH 1/1 Print real error when initramfs gunzip failed
Print the real error when initramfs gunzip failed. gunzip already sets up message correctly.
Signed-off-by Andi Kleen <[email protected]>
init/initramfs.c +1 -2
@@ -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;