Thread (21 messages) 21 messages, 3 authors, 2018-11-13
STALE2780d

[PATCH 17/17] [NOT FOR MERGING] lib: Be noisy about used decompression method.

From: Adam Borowski <hidden>
Date: 2018-11-09 19:03:59
Also in: linux-mips, linux-s390, linux-sh, lkml
Subsystem: library code, the rest · Maintainers: Andrew Morton, Linus Torvalds

It's too easy to build the initrd with wrong options during testing, after
which it may silently work anyway.

Signed-off-by: Adam Borowski <redacted>
---
 lib/decompress.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/lib/decompress.c b/lib/decompress.c
index 95f39a14eb7b..345679312a45 100644
--- a/lib/decompress.c
+++ b/lib/decompress.c
@@ -69,7 +69,9 @@ decompress_fn __init decompress_method(const unsigned char *inbuf, long len,
 			break;
 
 	}
-	if (name)
+	if (name) {
 		*name = cf->name;
+		printk("Decompressing using %s.\n", *name);
+	}
 	return cf->decompressor;
 }
-- 
2.19.1
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help