diff mbox series

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

Message ID 20181109190304.8573-17-kilobyte@angband.pl (mailing list archive)
State Not Applicable
Headers show
Series Kernel compression: add ZSTD, remove LZMA1 and BZIP2 | expand

Commit Message

Adam Borowski Nov. 9, 2018, 7:03 p.m. UTC
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 <kilobyte@angband.pl>
---
 lib/decompress.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
diff mbox series

Patch

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