Skip to content

Commit 31aa468

Browse files
DanceDanceigaw
authored andcommitted
plugins/lm: Refine Sequence Indicator description and macro usage
Changed the command dword reference in the sequence indicator (seqind) help text from CDW11 to CDW10. This aligns with the spec. Also changed the macro used for setting the sequence indicator bits in the `mos` field from LM_MIGRATION_SEND_MOS to LM_SEQIND. Signed-off-by: Dmitry Sherstoboev <[email protected]>
1 parent fe88964 commit 31aa468

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

plugins/lm/lm-nvme.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -280,7 +280,7 @@ static int lm_migration_send(int argc, char **argv, struct command *command, str
280280
" 1h = Suspend";
281281
const char *dudmq = "Delete user data migration queue (DUDMQ) as part of suspend operation "
282282
"(CDW11[31])";
283-
const char *seqind = "Sequence Indicator (CDW11[17:16])\n"
283+
const char *seqind = "Sequence Indicator (CDW10[17:16])\n"
284284
" 0h = Not first not last\n"
285285
" 1h = First in two or more\n"
286286
" 2h = Last in two or more\n"
@@ -394,7 +394,7 @@ static int lm_migration_send(int argc, char **argv, struct command *command, str
394394
.args_size = sizeof(args),
395395
.fd = dev_fd(dev),
396396
.sel = cfg.sel,
397-
.mos = NVME_SET(cfg.seqind, LM_MIGRATION_SEND_MOS),
397+
.mos = NVME_SET(cfg.seqind, LM_SEQIND),
398398
.cntlid = cfg.cntlid,
399399
.csuuidi = cfg.csuuidi,
400400
.uidx = cfg.uidx,

0 commit comments

Comments
 (0)