Commit:     3c5f6162549b9045a2925dff64c140c7f49ea344
Parent:     928370c676729df118f15939ef69b540a7b946b1
Author:     Milton Miller <[EMAIL PROTECTED]>
AuthorDate: Wed Apr 11 18:32:36 2007 +1000
Committer:  Paul Mackerras <[EMAIL PROTECTED]>
CommitDate: Fri Apr 27 21:13:49 2007 +1000

    [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 <[EMAIL PROTECTED]>
    Acked-by: David Gibson <[EMAIL PROTECTED]>
    Signed-off-by: Paul Mackerras <[EMAIL PROTECTED]>
 arch/powerpc/boot/gunzip_util.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/arch/powerpc/boot/gunzip_util.c b/arch/powerpc/boot/gunzip_util.c
index 8a97adf..df8ab07 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)
        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);
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at

Reply via email to