From 93f1c0fa1d7e2201fa366a6f4c9607d31f0aeb0c Mon Sep 17 00:00:00 2001 From: Karel Zak Date: Tue, 17 Aug 2021 13:32:10 +0200 Subject: [PATCH] zramctl: improve usage() output Signed-off-by: Karel Zak --- sys-utils/zramctl.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/sys-utils/zramctl.c b/sys-utils/zramctl.c index e2959f2ceb..0d6b0f04f2 100644 --- a/sys-utils/zramctl.c +++ b/sys-utils/zramctl.c @@ -547,7 +547,7 @@ static void __attribute__((__noreturn__)) usage(void) fputs(_("Set up and control zram devices.\n"), out); fputs(USAGE_OPTIONS, out); - fputs(_(" -a, --algorithm lzo|lz4|lz4hc|deflate|842|zstd compression algorithm to use\n"), out); + fputs(_(" -a, --algorithm compression algorithm to use\n"), out); fputs(_(" -b, --bytes print sizes in bytes rather than in human readable format\n"), out); fputs(_(" -f, --find find a free device\n"), out); fputs(_(" -n, --noheadings don't print headings\n"), out); @@ -564,6 +564,9 @@ static void __attribute__((__noreturn__)) usage(void) fputs(USAGE_ARGUMENTS, out); printf(USAGE_ARG_SIZE(_(""))); + fputs(_(" specify algorithm, supported are:\n"), out); + fputs(_(" lzo, lz4, lz4hc, deflate, 842 and zstd\n"), out); + fputs(USAGE_COLUMNS, out); for (i = 0; i < ARRAY_SIZE(infos); i++) fprintf(out, " %11s %s\n", infos[i].name, _(infos[i].help)); -- 2.47.2