[PATCH 3/3] uncompress: add detected file type debug print
Marco Felsch
m.felsch at pengutronix.de
Wed Jan 24 05:47:38 PST 2024
This can be useful for developers.
Signed-off-by: Marco Felsch <m.felsch at pengutronix.de>
---
lib/uncompress.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/lib/uncompress.c b/lib/uncompress.c
index e7a3ffde823e..48e8173501c6 100644
--- a/lib/uncompress.c
+++ b/lib/uncompress.c
@@ -97,6 +97,8 @@ int uncompress(unsigned char *inbuf, int len,
ft = file_detect_type(uncompress_buf, 32);
}
+ pr_debug("Filetype detected: %s\n", file_type_to_string(ft));
+
switch (ft) {
#ifdef CONFIG_BZLIB
case filetype_bzip2:
--
2.39.2
More information about the barebox
mailing list