]> www.infradead.org Git - users/hch/nvme-cli.git/commitdiff
nvme-cli: add print for command specific info field of error log page
authorMinwoo Im <minwoo.im.dev@gmail.com>
Sun, 7 Jan 2018 07:33:09 +0000 (16:33 +0900)
committerMinwoo Im <minwoo.im.dev@gmail.com>
Sun, 7 Jan 2018 07:33:09 +0000 (16:33 +0900)
Add print line for Command Specific Information[39:32] in Error
Information Log Entry.

Signed-off-by: Minwoo Im <minwoo.im.dev@gmail.com>
nvme-print.c
nvme.h

index a6110b2a31e8055a6f3e2d91f3f46107656edcd4..ad3ec1cd253bf46572f1aa9d1bddb54c38c6d246 100644 (file)
@@ -947,6 +947,7 @@ void show_error_log(struct nvme_error_log_page *err_log, int entries, const char
                printf("lba          : %#"PRIx64"\n",(uint64_t)le64_to_cpu(err_log[i].lba));
                printf("nsid         : %#x\n", err_log[i].nsid);
                printf("vs           : %d\n", err_log[i].vs);
+               printf("cs           : %#"PRIx64"\n", (uint64_t) err_log[i].cs);
                printf(".................\n");
        }
 }
diff --git a/nvme.h b/nvme.h
index b134be1e251c3a5b82bf121ea60e16c9591df60b..a23f28bcfeeebfa2ec6a72cbef93bb9a75c562fb 100644 (file)
--- a/nvme.h
+++ b/nvme.h
@@ -48,7 +48,9 @@ struct nvme_error_log_page {
        __u64   lba;
        __u32   nsid;
        __u8    vs;
-       __u8    resv[35];
+       __u8    resv[3];
+       __u64   cs;
+       __u8    resv2[24];
 };
 
 struct nvme_firmware_log_page {