[PATCH v2] makedumpfile: -v shows if lzo or snappy support enabled or not

WANG Chao chaowang at redhat.com
Wed Jan 8 23:36:30 EST 2014

It would be great to have makedumpfile -v to show if lzo or snappy
support is enabled or not, since --help prints too much and we have to
scroll back three screens to check it out.

For exmaple, If lzo and snappy support are enabled,

	$ ./makedumpfile -v
	makedumpfile: version 1.5.5 (released on 18 Dec 2013)
	lzo	enabled
	snappy	enabled

If both of them are disabled,

	$ ./makedumpfile -v
	makedumpfile: version 1.5.5 (released on 18 Dec 2013)
	lzo	disabled
	snappy	disabled

Signed-off-by: WANG Chao <chaowang at redhat.com>
 print_info.c | 10 ++++++++++
 1 file changed, 10 insertions(+)

diff --git a/print_info.c b/print_info.c
index 90b6cee..ddaa642 100644
--- a/print_info.c
+++ b/print_info.c
@@ -26,6 +26,16 @@ void
 	MSG("makedumpfile: version " VERSION " (released on " RELEASE_DATE ")\n");
+#ifdef USELZO
+	MSG("lzo\tenabled\n");
+	MSG("lzo\tdisabled\n");
+	MSG("snappy\tenabled\n");
+	MSG("snappy\tdisabled\n");

More information about the kexec mailing list