aboutsummaryrefslogtreecommitdiffstats
path: root/arch
diff options
context:
space:
mode:
authorMilton Miller <miltonm@bga.com>2007-04-11 04:32:36 -0400
committerPaul Mackerras <paulus@samba.org>2007-04-27 07:13:49 -0400
commit3c5f6162549b9045a2925dff64c140c7f49ea344 (patch)
treea0ff64eb0769cc522512767ae0b4667aa9b7ff75 /arch
parent928370c676729df118f15939ef69b540a7b946b1 (diff)
[POWERPC] boot: More verbose gunzip error message
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>
Diffstat (limited to 'arch')
-rw-r--r--arch/powerpc/boot/gunzip_util.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/arch/powerpc/boot/gunzip_util.c b/arch/powerpc/boot/gunzip_util.c
index 8a97adfac659..df8ab07e9ff4 100644
--- a/arch/powerpc/boot/gunzip_util.c
+++ b/arch/powerpc/boot/gunzip_util.c
@@ -142,7 +142,8 @@ void gunzip_exactly(struct gunzip_state *state, void *dst, int dstlen)
142 142
143 len = gunzip_partial(state, dst, dstlen); 143 len = gunzip_partial(state, dst, dstlen);
144 if (len < dstlen) 144 if (len < dstlen)
145 fatal("gunzip_block: ran out of data\n\r"); 145 fatal("\n\rgunzip_exactly: ran out of data!"
146 " Wanted %d, got %d.\n\r", dstlen, len);
146} 147}
147 148
148/** 149/**