From: Karel Zak Date: Tue, 16 Aug 2011 11:14:02 +0000 (+0200) Subject: fstrim: cleanup usage() X-Git-Tag: v2.20-rc2~26 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=2daae8620593b1eaa3f1c902dab1554d4ecafa73;p=thirdparty%2Futil-linux.git fstrim: cleanup usage() Signed-off-by: Karel Zak --- diff --git a/sys-utils/fstrim.c b/sys-utils/fstrim.c index 0006091d91..29c65617c5 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] \n\nOptions:\n"), - program_invocation_short_name); + fputs(_("\nUsage:\n"), out); + fprintf(out, + _(" %s [options] \n"), program_invocation_short_name); - fprintf(out, _( - " -h, --help this help\n" + fputs(_("\nOptions:\n"), out); + fputs(_(" -h, --help this help\n" " -o, --offset offset in bytes to discard from\n" " -l, --length length of bytes to discard from the offset\n" " -m, --minimum 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); }