diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-02-19 10:45:34 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-02-19 10:45:34 +0000 |
commit | 749efe961f0e1a71461a9c79e6e4584d35af6e7f (patch) | |
tree | c953c007cbe4f60a147ab62f97937d58abb2e9ca /nvme-print-stdout.c | |
parent | Adding upstream version 2.7.1. (diff) | |
download | nvme-cli-749efe961f0e1a71461a9c79e6e4584d35af6e7f.tar.xz nvme-cli-749efe961f0e1a71461a9c79e6e4584d35af6e7f.zip |
Adding upstream version 2.8.upstream/2.8
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to '')
-rw-r--r-- | nvme-print-stdout.c | 8 |
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); |