Use fmt -w WIDTH option instead of -WIDTH
authorTomohiro Kusumi <kusumi.tomohiro@gmail.com>
Thu, 20 Oct 2016 14:03:18 +0000 (23:03 +0900)
committerJens Axboe <axboe@fb.com>
Thu, 20 Oct 2016 14:10:10 +0000 (08:10 -0600)
commite291cff14e97feb3cff711f5a5cbcb63b32f9c72
tree339a758e6772e8513e680281bf164b4b86c8613f
parent047d1b55f5bab51c73b75d850c765242e25dbbfa
Use fmt -w WIDTH option instead of -WIDTH

Most systems support -WIDTH option which is an abbreviated form
of -w WIDTH or --width=WIDTH option, but some OS don't support
-WIDTH format.

As far as I've checked (on actual systems or online manpages),
Linux/FreeBSD/DragonFlyBSD/OpenBSD/Solaris/AIX/Cygwin support
-WIDTH format, but NetBSD doesn't support this (see below).
IRIX and HPUX may not support either according to online manpages.

-w WIDTH format is basically supported by all systems that have
fmt command, so this is probably better in terms of portability.

--
    CC crc/crc64.o
fmt: unknown option -- 1
Usage: fmt [-Cr] [-g <goal>] [-m|w <max>] [<files>..]
         fmt [-Cr] [<goal>] [<max>] [<files>]
    CC crc/md5.o
fmt: unknown option -- 1
Usage: fmt [-Cr] [-g <goal>] [-m|w <max>] [<files>..]
         fmt [-Cr] [<goal>] [<max>] [<files>]
...

Signed-off-by: Tomohiro Kusumi <kusumi.tomohiro@gmail.com>
Signed-off-by: Jens Axboe <axboe@fb.com>
Makefile