Skip to content

Commit

Permalink
nvme: fix directive receive identify offsets
Browse files Browse the repository at this point in the history
The persistent fields start at offset 64.

Signed-off-by: Keith Busch <[email protected]>
  • Loading branch information
keithbusch committed Jan 31, 2024
1 parent 251e77f commit 50f1e4e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions nvme-print-stdout.c
Original file line number Diff line number Diff line change
Expand Up @@ -4227,11 +4227,11 @@ static void stdout_directive_show_fields(__u8 dtype, __u8 doper,
(*(field + 32) & 0x4) ? "enabled" : "disabled");
printf("\tDirective Persistent Across Controller Level Resets \n");
printf("\t\tIdentify Directive : %s\n",
(*(field + 32) & 0x1) ? "enabled" : "disabled");
(*(field + 64) & 0x1) ? "enabled" : "disabled");
printf("\t\tStream Directive : %s\n",
(*(field + 32) & 0x2) ? "enabled" : "disabled");
(*(field + 64) & 0x2) ? "enabled" : "disabled");
printf("\t\tData Placement Directive : %s\n",
(*(field + 32) & 0x4) ? "enabled" : "disabled");
(*(field + 64) & 0x4) ? "enabled" : "disabled");
break;
default:
fprintf(stderr,
Expand Down

0 comments on commit 50f1e4e

Please sign in to comment.