Skip to contentSkip to conversation

lib: Be noisy about used decompression method.

PATCH New Adam Borowski 1 participant 1 message Mar 22, 2018 1 message not in the archive Library code

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

#1 lore raw

PATCH 1/1 lib: Be noisy about used decompression method.

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

---
 lib/decompress.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
lib/decompress.c +3 -1
index ab3fc90ffc64..556b9d916e10 100644
@@ -78,7 +78,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;
 }
Signature · 1 line
2.16.2