summaryrefslogtreecommitdiffstats
path: root/target/linux/adm5120-2.6/image/lzma-loader/src/decompress.c
diff options
context:
space:
mode:
authorflorian <florian@3c298f89-4303-0410-b956-a3cf2f4a3e73>2007-06-08 12:58:55 +0000
committerflorian <florian@3c298f89-4303-0410-b956-a3cf2f4a3e73>2007-06-08 12:58:55 +0000
commitf0ac4352335b16b04aba146a0d83ddaf312acd9c (patch)
treef409643702fcbe509bbe2c1036e5516eb225061f /target/linux/adm5120-2.6/image/lzma-loader/src/decompress.c
parent5e0c59483697e5e2e5c2518d9502ef2eeec91894 (diff)
Resync adm5120 kernel config, lzma-loader fixes from Gabor
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@7536 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux/adm5120-2.6/image/lzma-loader/src/decompress.c')
-rw-r--r--target/linux/adm5120-2.6/image/lzma-loader/src/decompress.c17
1 files changed, 14 insertions, 3 deletions
diff --git a/target/linux/adm5120-2.6/image/lzma-loader/src/decompress.c b/target/linux/adm5120-2.6/image/lzma-loader/src/decompress.c
index f867e20dc..ffc87ee0d 100644
--- a/target/linux/adm5120-2.6/image/lzma-loader/src/decompress.c
+++ b/target/linux/adm5120-2.6/image/lzma-loader/src/decompress.c
@@ -277,9 +277,20 @@ void decompress_entry(unsigned long reg_a0, unsigned long reg_a1,
(unsigned char*)LOADADDR, osize, &i);
#endif
if (res != LZMA_RESULT_OK) {
- print_str("failed, LzmaDecode error: ");
- print_hex(res);
- print_str("\n");
+ print_str("failed!\n");
+ print_str("LzmaDecode: ");
+ switch (res) {
+ case LZMA_RESULT_DATA_ERROR:
+ print_str("data error\n");
+ break;
+ case LZMA_RESULT_NOT_ENOUGH_MEM:
+ print_str("not enough memory\n");
+ break;
+ default:
+ print_str("unknown error, err=0x");
+ print_hex(res);
+ print_str("\n");
+ }
halt();
}