makedumpfile: -v shows if lzo or snappy support enabled or not
Subsystems (2)
PATCH v2 1/1 makedumpfile: -v shows if lzo or snappy support enabled or not
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
--- print_info.c | 10 ++++++++++ 1 file changed, 10 insertions(+)
print_info.c +10 -0
@@ -26,6 +26,16 @@ voidshow_version (void) {MSG ("makedumpfile: version " VERSION " (released on " RELEASE_DATE ")\n" ); +#ifdef USELZO +MSG ("lzo\tenabled\n" ); +#else +MSG ("lzo\tdisabled\n" ); +#endif +#ifdef USESNAPPY +MSG ("snappy\tenabled\n" ); +#else +MSG ("snappy\tdisabled\n" ); +#endif MSG ("\n" ); }
Signature · 7 lines
1.8.4.2 _______________________________________________ kexec mailing list [email protected] http://lists.infradead.org/mailman/listinfo/kexec
Quoted 11 lines · kexec
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
Quoted 8 lines
If both of them are disabled,
$ ./makedumpfile -v makedumpfile: version 1.5.5 (released on 18 Dec 2013) lzo disabled snappy disabledSigned-off-by WANG Chao <[email protected]>
Thanks, I'll merge this into v1.5.6.
Atsushi Kumagai
Quoted 33 lines
--- print_info.c | 10 ++++++++++ 1 file changed, 10 insertions(+)print_info.c +10
-0@@ -26,6 +26,16 @@ voidshow_version (void) {MSG ("makedumpfile: version " VERSION " (released on " RELEASE_DATE ")\n" ); +#ifdef USELZO +MSG ("lzo\tenabled\n" ); +#else +MSG ("lzo\tdisabled\n" ); +#endif +#ifdef USESNAPPY +MSG ("snappy\tenabled\n" ); +#else +MSG ("snappy\tdisabled\n" ); +#endif MSG ("\n" ); }Signature · 7 lines
1.8.4.2 _______________________________________________ kexec mailing list [email protected] http://lists.infradead.org/mailman/listinfo/kexec
_______________________________________________
kexec mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/kexec