]> www.infradead.org Git - users/sagi/nvme-cli.git/commitdiff
nvme: fix the fw-log structure and show fw log changes
authorGollu Appalanaidu <anaidu.gollu@samsung.com>
Fri, 18 Jun 2021 18:07:53 +0000 (23:37 +0530)
committerDaniel Wagner <dwagner@suse.de>
Mon, 15 Nov 2021 11:06:28 +0000 (12:06 +0100)
Signed-off-by: Gollu Appalanaidu <anaidu.gollu@samsung.com>
nvme-print.c

index 199079490700dd8ebd28050e25bc37b6140376e3..9bb101860035d0bc9aaca15a009da2182cd88c86 100644 (file)
@@ -5324,8 +5324,8 @@ void nvme_show_lba_range(struct nvme_lba_range_type *lbrt, int nr_ranges)
                        ((lbrt->entry[i].attributes & 0x0002) >> 1) ?
                                "LBA range should be hidden from the OS/EFI/BIOS" :
                                "LBA range should be visible from the OS/EFI/BIOS");
-               printf("\tslba       : %#"PRIx64"\n", (uint64_t)(lbrt->entry[i].slba));
-               printf("\tnlb        : %#"PRIx64"\n", (uint64_t)(lbrt->entry[i].nlb));
+               printf("\tslba       : %#"PRIx64"\n", le64_to_cpu(lbrt->entry[i].slba));
+               printf("\tnlb        : %#"PRIx64"\n", le64_to_cpu(lbrt->entry[i].nlb));
                printf("\tguid       : ");
                for (j = 0; j < 16; j++)
                        printf("%02x", lbrt->entry[i].guid[j]);