From: Tokunori Ikegami Date: Sun, 7 Jul 2024 13:55:14 +0000 (+0900) Subject: ocp: use NVME_ARGS macro definition by eol-plp-failure-mode command X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=f0860ad7208bdd465b4f22e557875435322f4f0d;p=users%2Fsagi%2Fnvme-cli.git ocp: use NVME_ARGS macro definition by eol-plp-failure-mode command The verbose, output-format and timeout options enabled by the macro. Signed-off-by: Tokunori Ikegami --- diff --git a/plugins/ocp/ocp-nvme.c b/plugins/ocp/ocp-nvme.c index e9ebc401..88ac212e 100644 --- a/plugins/ocp/ocp-nvme.c +++ b/plugins/ocp/ocp-nvme.c @@ -775,14 +775,12 @@ static int eol_plp_failure_mode(int argc, char **argv, struct command *cmd, .sel = 0, }; - OPT_ARGS(opts) = { - OPT_BYTE("mode", 'm', &cfg.mode, mode), - OPT_FLAG("save", 's', &cfg.save, save), - OPT_BYTE("sel", 'S', &cfg.sel, sel), - OPT_FLAG("no-uuid", 'n', NULL, - "Skip UUID index search (UUID index not required for OCP 1.0)"), - OPT_END() - }; + NVME_ARGS(opts, + OPT_BYTE("mode", 'm', &cfg.mode, mode), + OPT_FLAG("save", 's', &cfg.save, save), + OPT_BYTE("sel", 'S', &cfg.sel, sel), + OPT_FLAG("no-uuid", 'n', NULL, + "Skip UUID index search (UUID index not required for OCP 1.0)")); err = parse_and_open(&dev, argc, argv, desc, opts); if (err)