]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/commitdiff
[POWERPC] boot: More verbose gunzip error message
authorMilton Miller <miltonm@bga.com>
Wed, 11 Apr 2007 08:32:36 +0000 (18:32 +1000)
committerPaul Mackerras <paulus@samba.org>
Fri, 27 Apr 2007 11:13:49 +0000 (21:13 +1000)
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 <miltonm@bga.com>
Acked-by: David Gibson <david@gibson.dropbear.id.au>
Signed-off-by: Paul Mackerras <paulus@samba.org>
arch/powerpc/boot/gunzip_util.c

index 8a97adfac659b4c675f9f947c8d48a52fd1b4e1f..df8ab07e9ff46242749deda96f21b7de015bad46 100644 (file)
@@ -142,7 +142,8 @@ void gunzip_exactly(struct gunzip_state *state, void *dst, int dstlen)
 
        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);
 }
 
 /**