From: Keith Busch Date: Fri, 21 May 2021 16:57:36 +0000 (-0700) Subject: fix virtual mgmt parameter sizes X-Git-Tag: v1.15~77 X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=a50a0c12d6e75e989b677ee09bf014f6ae8417b9;p=users%2Fsagi%2Fnvme-cli.git fix virtual mgmt parameter sizes The option sizes need to match the parameter sizes. Fixes: 4221cb85 ("nvme: fix and refactor virt mgmt cdw10 and cdw11 arguments") Link: https://github.com/linux-nvme/nvme-cli/issues/1049 Signed-off-by: Keith Busch --- diff --git a/nvme.c b/nvme.c index c30fad87..b61c4215 100644 --- a/nvme.c +++ b/nvme.c @@ -2395,9 +2395,9 @@ static int virtual_mgmt(int argc, char **argv, struct command *cmd, struct plugi OPT_ARGS(opts) = { OPT_UINT("cntlid", 'c', &cfg.cntlid, cntlid), - OPT_UINT("rt", 'r', &cfg.rt, rt), - OPT_UINT("act", 'a', &cfg.act, act), - OPT_UINT("nr", 'n', &cfg.nr, nr), + OPT_BYTE("rt", 'r', &cfg.rt, rt), + OPT_BYTE("act", 'a', &cfg.act, act), + OPT_SHRT("nr", 'n', &cfg.nr, nr), OPT_END() };