summaryrefslogtreecommitdiffstats
path: root/nvme-print-stdout.c
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--nvme-print-stdout.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/nvme-print-stdout.c b/nvme-print-stdout.c
index e3c9a74..63462ea 100644
--- a/nvme-print-stdout.c
+++ b/nvme-print-stdout.c
@@ -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,
@@ -4864,7 +4864,7 @@ static void stdout_detailed_list(nvme_root_t r)
printf("\n");
printf("%-8s %-20s %-40s %-8s %-6s %-14s %-6s %-12s %-16s\n", "Device",
- "SN", "MN", "FR", "TxPort", "Asdress", "Slot", "Subsystem", "Namespaces");
+ "SN", "MN", "FR", "TxPort", "Address", "Slot", "Subsystem", "Namespaces");
printf("%-.8s %-.20s %-.40s %-.8s %-.6s %-.14s %-.6s %-.12s %-.16s\n", dash,
dash, dash, dash, dash, dash, dash, dash, dash);
strset_iterate(&res.ctrls, stdout_detailed_ctrl, &res);