Commit 3c5f6162 authored by Milton Miller's avatar Milton Miller Committed by Paul Mackerras

[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: default avatarMilton Miller <miltonm@bga.com>
Acked-by: default avatarDavid Gibson <david@gibson.dropbear.id.au>
Signed-off-by: default avatarPaul Mackerras <paulus@samba.org>
parent 928370c6
......@@ -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);
}
/**
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment