]> www.infradead.org Git - users/hch/nvme-cli.git/commitdiff
Fix nsid print in show_error_log
authorSami Waheed <slw26c@gmail.com>
Thu, 14 Apr 2016 17:14:42 +0000 (10:14 -0700)
committerSami Waheed <slw26c@gmail.com>
Thu, 14 Apr 2016 17:14:42 +0000 (10:14 -0700)
nsid in error log page could be set to 0xffffffff and should be printed
as unsigned instead of int

nvme-print.c

index bfe94462d6bdea72a39dafd1d217227f90181e74..e2421802fe27b8452373e935dfd46df3cd1c59ff 100644 (file)
@@ -676,7 +676,7 @@ void show_error_log(struct nvme_error_log_page *err_log, int entries, const char
                printf("status_field : %#x\n", err_log[i].status_field);
                printf("parm_err_loc : %#x\n", err_log[i].parm_error_location);
                printf("lba          : %#"PRIx64"\n",(uint64_t)le64toh(err_log[i].lba));
-               printf("nsid         : %d\n", err_log[i].nsid);
+               printf("nsid         : %#x\n", err_log[i].nsid);
                printf("vs           : %d\n", err_log[i].vs);
                printf(".................\n");
        }