mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Andi Kleen <ak@suse.de>
To: akpm@osdl.org, linux-kernel@vger.kernel.org
Subject: [PATCH] Print real error when initramfs gunzip failed
Date: Fri, 29 Oct 2004 15:06:40 +0200 (CEST)	[thread overview]
Message-ID: <20041029130640.995EB9DEE36E@verdi.suse.de> (raw)


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

Signed-off-by: Andi Kleen <ak@suse.de>

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;

                 reply	other threads:[~2004-10-29 13:07 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20041029130640.995EB9DEE36E@verdi.suse.de \
    --to=ak@suse.de \
    --cc=akpm@osdl.org \
    --cc=linux-kernel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®