From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Date: Wed, 11 Apr 2007 03:32:36 -0500 (CDT) Subject: [PATCH 1/8] boot: more verbose gunzip error message Sender: From: Milton Miller To: linuxppc-dev@ozlabs.org Message-Id: In-Reply-To: Cc: Paul Mackerras , David Gibson List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Change the error message in gunzip_exactly to be more verbose. Besides the identifier being unrelated to the current function name, the user had no indication if the corruption was near the beginning or the end. Signed-off-by: Milton Miller Index: kernel/arch/powerpc/boot/gunzip_util.c =================================================================== --- kernel.orig/arch/powerpc/boot/gunzip_util.c 2007-04-10 21:29:49.000000000 -0500 +++ kernel/arch/powerpc/boot/gunzip_util.c 2007-04-10 21:30:15.000000000 -0500 @@ -142,7 +142,8 @@ void gunzip_exactly(struct gunzip_state len = gunzip_partial(state, dst, dstlen); if (len < dstlen) - fatal("gunzip_block: ran out of data\n\r"); + fatal("\n\rgunzip_exactly: ran out of data!" + " Wanted %d, got %d.\n\r", dstlen, len); } /**