diff options
author | Stefan Reinauer <stepan@coresystems.de> | 2009-09-25 21:57:25 +0000 |
---|---|---|
committer | Stefan Reinauer <stepan@openbios.org> | 2009-09-25 21:57:25 +0000 |
commit | 0a181fd642d0c0780b4b88654d732cf625d1c862 (patch) | |
tree | 9f3edb66841df6f750607f7c9c9f9288588b9a13 | |
parent | 45847beb4947442f6e7e78e04de50bfbc5798a7e (diff) |
improve lzma error messages. When coreboot panics because lzma decompression
goes wrong, it might not be clear that it's lzma that failed, if the log level
is low enough..
Signed-off-by: Stefan Reinauer <stepan@coresystems.de>
Acked-by: Stefan Reinauer <stepan@coresystems.de>
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@4676 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
-rw-r--r-- | src/lib/lzma.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/lib/lzma.c b/src/lib/lzma.c index 7b4c69038b..25597fba49 100644 --- a/src/lib/lzma.c +++ b/src/lib/lzma.c @@ -29,19 +29,19 @@ unsigned long ulzma(unsigned char * src, unsigned char * dst) memcpy(properties, src, LZMA_PROPERTIES_SIZE); outSize = *(UInt32 *)(src + LZMA_PROPERTIES_SIZE); if (LzmaDecodeProperties(&state.Properties, properties, LZMA_PROPERTIES_SIZE) != LZMA_RESULT_OK) { - printk_warning("Incorrect stream properties\n"); + printk_warning("lzma: Incorrect stream properties.\n"); return 0; } mallocneeds = (LzmaGetNumProbs(&state.Properties) * sizeof(CProb)); if (mallocneeds > 15980) { - printk_warning("Decoder scratchpad too small!\n"); + printk_warning("lzma: Decoder scratchpad too small!\n"); return 0; } state.Probs = (CProb *)scratchpad; res = LzmaDecode(&state, src + LZMA_PROPERTIES_SIZE + 8, (SizeT)0xffffffff, &inProcessed, dst, outSize, &outProcessed); if (res != 0) { - printk_warning("Decoding error = %d\n", res); + printk_warning("lzma: Decoding error = %d\n", res); return 0; } return outSize; |