summaryrefslogtreecommitdiffstats
path: root/sys-utils/fsfreeze.c
diff options
context:
space:
mode:
authorKarel Zak2011-08-16 13:12:08 +0200
committerKarel Zak2011-08-16 13:12:08 +0200
commita2aef6d928ee6acbbebcacf429432270f319e4e7 (patch)
tree453a745eeb4e22993ff7646be3102d662be8b6f4 /sys-utils/fsfreeze.c
parentflock: cleanup usage() (diff)
downloadkernel-qcow2-util-linux-a2aef6d928ee6acbbebcacf429432270f319e4e7.tar.gz
kernel-qcow2-util-linux-a2aef6d928ee6acbbebcacf429432270f319e4e7.tar.xz
kernel-qcow2-util-linux-a2aef6d928ee6acbbebcacf429432270f319e4e7.zip
fsfreeze: cleanup usage()
Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'sys-utils/fsfreeze.c')
-rw-r--r--sys-utils/fsfreeze.c15
1 files changed, 8 insertions, 7 deletions
diff --git a/sys-utils/fsfreeze.c b/sys-utils/fsfreeze.c
index 6ffd1b621..3f03a5241 100644
--- a/sys-utils/fsfreeze.c
+++ b/sys-utils/fsfreeze.c
@@ -37,15 +37,16 @@ static int unfreeze_f(int fd)
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"
- " -f, --freeze freeze the filesystem\n"
- " -u, --unfreeze unfreeze the filesystem\n"));
+ fputs(_("\nOptions:\n"), out);
+ fputs(_(" -h, --help this help\n"
+ " -f, --freeze freeze the filesystem\n"
+ " -u, --unfreeze unfreeze the filesystem\n"), out);
- fprintf(out, _("\nFor more information see fsfreeze(8).\n"));
+ fputs(_("\nFor more information see fsfreeze(8).\n"), out);
exit(out == stderr ? EXIT_FAILURE : EXIT_SUCCESS);
}