From: Tomohiro Kusumi Date: Wed, 27 Jul 2016 13:37:15 +0000 (+0900) Subject: Add missing --cmdhelp type string for FIO_OPT_UNSUPPORTED X-Git-Tag: fio-2.14~84 X-Git-Url: https://git.kernel.dk/?a=commitdiff_plain;h=675d2d651cce01e8c18cc6fda8bb44e1d9e405bd;hp=2403767a46a027bc7fdbb6ff27fc0da109ee1179;p=fio.git Add missing --cmdhelp type string for FIO_OPT_UNSUPPORTED Without "unsupported" at index 12 (FIO_OPT_UNSUPPORTED) of typehelp[], unsupported commands print irrelevant binary at typehelp[12]. # fio --cmdhelp=numa_cpu_nodes numa_cpu_nodes: Build fio with libnuma-dev(el) to enable this option type: ÏÿF default: no default With this commit. # fio --cmdhelp=numa_cpu_nodes numa_cpu_nodes: Build fio with libnuma-dev(el) to enable this option type: unsupported default: no default Signed-off-by: Tomohiro Kusumi Signed-off-by: Jens Axboe --- diff --git a/parse.c b/parse.c index bb16bc16..086f7864 100644 --- a/parse.c +++ b/parse.c @@ -109,6 +109,7 @@ static void show_option_help(struct fio_option *o, int is_err) "list of floating point values separated by ':' (opt=5.9:7.8)", "no argument (opt)", "deprecated", + "unsupported", }; size_t (*logger)(const char *format, ...);