summaryrefslogtreecommitdiffstats
path: root/sys-utils/fstrim.c
diff options
context:
space:
mode:
authorKarel Zak2011-08-16 13:14:02 +0200
committerKarel Zak2011-08-16 13:14:02 +0200
commit2daae8620593b1eaa3f1c902dab1554d4ecafa73 (patch)
tree342621e1724f09482a90571d164bcc884828ace8 /sys-utils/fstrim.c
parentfsfreeze: cleanup usage() (diff)
downloadkernel-qcow2-util-linux-2daae8620593b1eaa3f1c902dab1554d4ecafa73.tar.gz
kernel-qcow2-util-linux-2daae8620593b1eaa3f1c902dab1554d4ecafa73.tar.xz
kernel-qcow2-util-linux-2daae8620593b1eaa3f1c902dab1554d4ecafa73.zip
fstrim: cleanup usage()
Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'sys-utils/fstrim.c')
-rw-r--r--sys-utils/fstrim.c13
1 files changed, 7 insertions, 6 deletions
diff --git a/sys-utils/fstrim.c b/sys-utils/fstrim.c
index 0006091d9..29c65617c 100644
--- a/sys-utils/fstrim.c
+++ b/sys-utils/fstrim.c
@@ -52,17 +52,18 @@ struct fstrim_range {
static void __attribute__((__noreturn__)) usage(FILE *out)
{
- fprintf(out, _("Usage: %s [options] <mount point>\n\nOptions:\n"),
- program_invocation_short_name);
+ fputs(_("\nUsage:\n"), out);
+ fprintf(out,
+ _(" %s [options] <mount point>\n"), program_invocation_short_name);
- fprintf(out, _(
- " -h, --help this help\n"
+ fputs(_("\nOptions:\n"), out);
+ fputs(_(" -h, --help this help\n"
" -o, --offset <num> offset in bytes to discard from\n"
" -l, --length <num> length of bytes to discard from the offset\n"
" -m, --minimum <num> minimum extent length to discard\n"
- " -v, --verbose print number of discarded bytes\n"));
+ " -v, --verbose print number of discarded bytes\n"), out);
- fprintf(out, _("\nFor more information see fstrim(1).\n"));
+ fputs(_("\nFor more information see fstrim(1).\n"), out);
exit(out == stderr ? EXIT_FAILURE : EXIT_SUCCESS);
}