From 23599bc0284430a21ecc1ed8bcb78f851cda4c39 Mon Sep 17 00:00:00 2001 From: Eyal Ben David Date: Wed, 4 Jul 2018 20:50:10 +0300 Subject: [PATCH] nvme.c, list_ns: use le32_to_cpu in display --- nvme.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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", -- 2.50.1