From: Eyal Ben David Date: Wed, 4 Jul 2018 17:50:10 +0000 (+0300) Subject: nvme.c, list_ns: use le32_to_cpu in display X-Git-Tag: v1.6~3^2 X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=23599bc0284430a21ecc1ed8bcb78f851cda4c39;p=users%2Fsagi%2Fnvme-cli.git nvme.c, list_ns: use le32_to_cpu in display --- diff --git a/nvme.c b/nvme.c index 039997a1..e43f7bf4 100644 --- a/nvme.c +++ b/nvme.c @@ -909,7 +909,7 @@ static int list_ns(int argc, char **argv, struct command *cmd, struct plugin *pl if (!err) { for (i = 0; i < 1024; i++) if (ns_list[i]) - printf("[%4u]:%#x\n", i, ns_list[i]); + printf("[%4u]:%#x\n", i, le32_to_cpu(ns_list[i])); } else if (err > 0) fprintf(stderr, "NVMe Status:%s(%x) NSID:%d\n",