]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
fsfreeze: cleanup usage()
authorKarel Zak <kzak@redhat.com>
Tue, 16 Aug 2011 11:12:08 +0000 (13:12 +0200)
committerKarel Zak <kzak@redhat.com>
Tue, 16 Aug 2011 11:12:08 +0000 (13:12 +0200)
Signed-off-by: Karel Zak <kzak@redhat.com>
sys-utils/fsfreeze.c

index 6ffd1b6210e51b3fb3c5746522e0c4a6744c3d8e..3f03a5241975192606257c978ba2dadd01c31bd0 100644 (file)
@@ -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);
 }