summaryrefslogtreecommitdiffstats
path: root/pbl/decomp.c
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 /pbl/decomp.c
parent5c88c98d524ff9cd7f7fb0fe4782c508917346ec (diff)
downloadbarebox-cf917f051e579d29098e6b334a4ef0ffde59f0fb.tar.gz
barebox-cf917f051e579d29098e6b334a4ef0ffde59f0fb.tar.xz
pbl: report decompression failure
Signed-off-by: Peter Mamonov <pmamonov@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'pbl/decomp.c')
-rw-r--r--pbl/decomp.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/pbl/decomp.c b/pbl/decomp.c
index c8014c403f..72a162309a 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);
}