[PATCH] pbl: report decompression failure

Peter Mamonov pmamonov at gmail.com
Tue Jun 11 03:18:33 PDT 2019


Signed-off-by: Peter Mamonov <pmamonov at gmail.com>
---
 pbl/decomp.c | 4 ++++
 1 file changed, 4 insertions(+)

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);
 }
 
-- 
2.20.1




More information about the barebox mailing list