[PATCH 3/3] uncompress: add detected file type debug print

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



This can be useful for developers.

Signed-off-by: Marco Felsch <m.felsch@xxxxxxxxxxxxxx>
---
 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





[Index of Archives]     [Linux Embedded]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [XFree86]

  Powered by Linux