Skip to content

Commit 8f19426

Browse files
ikegami-tigaw
authored andcommitted
ocp: replace no-uuid option help string to use no_uuid variable
Reduce duplicated string definitions. Signed-off-by: Tokunori Ikegami <[email protected]>
1 parent eb67f3b commit 8f19426

File tree

1 file changed

+4
-8
lines changed

1 file changed

+4
-8
lines changed

plugins/ocp/ocp-nvme.c

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -565,8 +565,7 @@ static int eol_plp_failure_mode(int argc, char **argv, struct command *cmd,
565565
OPT_BYTE("mode", 'm', &cfg.mode, mode),
566566
OPT_FLAG("save", 's', &cfg.save, save),
567567
OPT_BYTE("sel", 'S', &cfg.sel, sel),
568-
OPT_FLAG("no-uuid", 'n', NULL,
569-
"Skip UUID index search (UUID index not required for OCP 1.0)"));
568+
OPT_FLAG("no-uuid", 'n', NULL, no_uuid));
570569

571570
err = parse_and_open(&dev, argc, argv, desc, opts);
572571
if (err)
@@ -2026,8 +2025,7 @@ static int set_dssd_power_state_feature(int argc, char **argv, struct command *c
20262025
OPT_ARGS(opts) = {
20272026
OPT_BYTE("power-state", 'p', &cfg.power_state, power_state),
20282027
OPT_FLAG("save", 's', &cfg.save, save),
2029-
OPT_FLAG("no-uuid", 'n', NULL,
2030-
"Skip UUID index search (UUID index not required for OCP 1.0)"),
2028+
OPT_FLAG("no-uuid", 'n', NULL, no_uuid),
20312029
OPT_END()
20322030
};
20332031

@@ -2117,8 +2115,7 @@ static int get_dssd_power_state_feature(int argc, char **argv, struct command *c
21172115
OPT_ARGS(opts) = {
21182116
OPT_BYTE("sel", 'S', &cfg.sel, sel),
21192117
OPT_FLAG("all", 'a', NULL, all),
2120-
OPT_FLAG("no-uuid", 'n', NULL,
2121-
"Skip UUID index search (UUID index not required for OCP 1.0)"),
2118+
OPT_FLAG("no-uuid", 'n', NULL, no_uuid),
21222119
OPT_END()
21232120
};
21242121

@@ -2176,8 +2173,7 @@ static int set_plp_health_check_interval(int argc, char **argv, struct command *
21762173
OPT_ARGS(opts) = {
21772174
OPT_BYTE("plp_health_interval", 'p', &cfg.plp_health_interval, plp_health_interval),
21782175
OPT_FLAG("save", 's', &cfg.save, save),
2179-
OPT_FLAG("no-uuid", 'n', NULL,
2180-
"Skip UUID index search (UUID index not required for OCP 1.0)"),
2176+
OPT_FLAG("no-uuid", 'n', NULL, no_uuid),
21812177
OPT_END()
21822178
};
21832179

0 commit comments

Comments
 (0)