summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPeter Mamonov <pmamonov@gmail.com>2019-06-11 13:18:33 +0300
committerSascha Hauer <s.hauer@pengutronix.de>2019-06-13 08:25:56 +0200
commitcf917f051e579d29098e6b334a4ef0ffde59f0fb (patch)
tree20b20dab9ee6fd8d53ac3e148f9143ba8e937859
parent5c88c98d524ff9cd7f7fb0fe4782c508917346ec (diff)
downloadbarebox-cf917f051e579d29098e6b334a4ef0ffde59f0fb.tar.gz
pbl: report decompression failure
Signed-off-by: Peter Mamonov <pmamonov@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
-rw-r--r--pbl/decomp.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/pbl/decomp.c b/pbl/decomp.c
index c8014c4..72a1623 100644
--- a/pbl/decomp.c
+++ b/pbl/decomp.c
@@ -7,6 +7,7 @@
#include <common.h>
#include <pbl.h>
+#include <debug_ll.h>
#define STATIC static
@@ -40,6 +41,9 @@ STATIC int decompress(u8 *input, int in_len,
static void noinline errorfn(char *error)
{
+ puts_ll("ERROR: ");
+ puts_ll(error);
+ puts_ll("\nHANG\n");
while (1);
}