diff options
author | Sami Kerola | 2014-09-28 21:51:41 +0200 |
---|---|---|
committer | Karel Zak | 2014-10-01 12:33:26 +0200 |
commit | db433bf737a5fd4e1c7cca5e3603934743eebd1c (patch) | |
tree | de811b6d372bf7cba52535d2d1de770541499b34 /disk-utils/mkfs.c | |
parent | textual: use manual tail usage() macro (diff) | |
download | kernel-qcow2-util-linux-db433bf737a5fd4e1c7cca5e3603934743eebd1c.tar.gz kernel-qcow2-util-linux-db433bf737a5fd4e1c7cca5e3603934743eebd1c.tar.xz kernel-qcow2-util-linux-db433bf737a5fd4e1c7cca5e3603934743eebd1c.zip |
textual: use usage() text element macros
Translating these text elements should happen only once, which is
more likely when the text macros are used properly.
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
Diffstat (limited to 'disk-utils/mkfs.c')
-rw-r--r-- | disk-utils/mkfs.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/disk-utils/mkfs.c b/disk-utils/mkfs.c index f10ba2890..dbc938f1a 100644 --- a/disk-utils/mkfs.c +++ b/disk-utils/mkfs.c @@ -44,11 +44,10 @@ static void __attribute__ ((__noreturn__)) usage(FILE * out) { - fprintf(out, _("Usage:\n")); + fputs(USAGE_HEADER, out); fprintf(out, _(" %s [options] [-t <type>] [fs-options] <device> [<size>]\n"), program_invocation_short_name); - - fprintf(out, _("\nOptions:\n")); + fputs(USAGE_OPTIONS, out); fprintf(out, _(" -t, --type=<type> filesystem type; when unspecified, ext2 is used\n")); fprintf(out, _(" fs-options parameters for the real filesystem builder\n")); fprintf(out, _(" <device> path to the device to be used\n")); |