]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
zramctl: improve usage() output
authorKarel Zak <kzak@redhat.com>
Tue, 17 Aug 2021 11:32:10 +0000 (13:32 +0200)
committerKarel Zak <kzak@redhat.com>
Tue, 17 Aug 2021 11:32:10 +0000 (13:32 +0200)
Signed-off-by: Karel Zak <kzak@redhat.com>
sys-utils/zramctl.c

index e2959f2ceba48c2b6a83a7254be6bb230abf31e4..0d6b0f04f21909ddc961f4c4f242ff3c743178cd 100644 (file)
@@ -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 <alg>     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(_("<size>")));
 
+       fputs(_(" <alg> 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));