]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
lsfd: fix specifying wrong JSON typs when building the help message
authorMasatake YAMATO <yamato@redhat.com>
Thu, 22 Jun 2023 16:10:04 +0000 (01:10 +0900)
committerMasatake YAMATO <yamato@redhat.com>
Thu, 22 Jun 2023 16:10:04 +0000 (01:10 +0900)
Signed-off-by: Masatake YAMATO <yamato@redhat.com>
misc-utils/lsfd.c

index b5a607c8f57b32a9ab07c685cd32cd4ca1d15675..7672a026aa644bb22671c38bed141282b6098d9a 100644 (file)
@@ -1604,7 +1604,7 @@ static void __attribute__((__noreturn__)) usage(void)
                fprintf(out, " %16s  %-10s%s\n", infos[i].name,
                        infos[i].json_type == SCOLS_JSON_STRING?  "<string>":
                        infos[i].json_type == SCOLS_JSON_ARRAY_STRING?  "<string>":
-                       infos[i].json_type == SCOLS_JSON_ARRAY_STRING?  "<string>":
+                       infos[i].json_type == SCOLS_JSON_ARRAY_NUMBER?  "<string>":
                        infos[i].json_type == SCOLS_JSON_NUMBER?  "<number>":
                        "<boolean>",
                        _(infos[i].help));