summaryrefslogtreecommitdiffstats
path: root/sys-utils/blkdiscard.c
diff options
context:
space:
mode:
authorBenno Schulenberg2016-03-09 11:55:01 +0100
committerKarel Zak2016-03-09 12:11:18 +0100
commitb31fd516ff04b880ea9cfc13faf030924f30d5fc (patch)
tree508c24b3bdc99c351c523f4060470cf32006e8ce /sys-utils/blkdiscard.c
parentmount: further improve formatting of the man page (diff)
downloadkernel-qcow2-util-linux-b31fd516ff04b880ea9cfc13faf030924f30d5fc.tar.gz
kernel-qcow2-util-linux-b31fd516ff04b880ea9cfc13faf030924f30d5fc.tar.xz
kernel-qcow2-util-linux-b31fd516ff04b880ea9cfc13faf030924f30d5fc.zip
blkdiscard: slice up the recently changed usage text
Signed-off-by: Benno Schulenberg <bensberg@justemail.net>
Diffstat (limited to 'sys-utils/blkdiscard.c')
-rw-r--r--sys-utils/blkdiscard.c15
1 files changed, 8 insertions, 7 deletions
diff --git a/sys-utils/blkdiscard.c b/sys-utils/blkdiscard.c
index ff2cee355..c83e12f20 100644
--- a/sys-utils/blkdiscard.c
+++ b/sys-utils/blkdiscard.c
@@ -87,16 +87,17 @@ static void __attribute__((__noreturn__)) usage(FILE *out)
fputs(_("Discard the content of sectors on a device.\n"), out);
fputs(USAGE_OPTIONS, out);
- fputs(_(" -o, --offset <num> offset in bytes to discard from\n"
- " -l, --length <num> length of bytes to discard from the offset\n"
- " -p, --step <num> size of the discard iterations within the offset\n"
- " -s, --secure perform secure discard\n"
- " -z, --zeroout zero-fill rather than discard\n"
- " -v, --verbose print aligned length and offset\n"),
- out);
+ fputs(_(" -o, --offset <num> offset in bytes to discard from\n"), out);
+ fputs(_(" -l, --length <num> length of bytes to discard from the offset\n"), out);
+ fputs(_(" -p, --step <num> size of the discard iterations within the offset\n"), out);
+ fputs(_(" -s, --secure perform secure discard\n"), out);
+ fputs(_(" -z, --zeroout zero-fill rather than discard\n"), out);
+ fputs(_(" -v, --verbose print aligned length and offset\n"), out);
+
fputs(USAGE_SEPARATOR, out);
fputs(USAGE_HELP, out);
fputs(USAGE_VERSION, out);
+
fprintf(out, USAGE_MAN_TAIL("blkdiscard(8)"));
exit(out == stderr ? EXIT_FAILURE : EXIT_SUCCESS);
}