From f0bfd9e4badf9eb2f947cb3c671747e886aee023 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Matias=20Bj=C3=B8rling?= Date: Mon, 22 Jun 2020 13:37:41 +0000 Subject: [PATCH] Remove lx text from reporting MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit When reporting zones, the lx text was not removed when the type was changed to be PRIx64. Signed-off-by: Matias Bjørling --- nvme-print.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nvme-print.c b/nvme-print.c index 7e9782e..3edcbd9 100644 --- a/nvme-print.c +++ b/nvme-print.c @@ -3032,7 +3032,7 @@ void nvme_show_zns_report_zones(void *report, __u32 descs, for (i = 0; i < descs; i++) { desc = (struct nvme_zns_desc *) (report + sizeof(*r) + i * (sizeof(*desc) + ext_size)); - printf("SLBA: 0x%-8"PRIx64" WP: 0x%-8"PRIx64"lx Cap: 0x%-8"PRIx64"lx State: %-12s Type: %-14s Attrs: 0x%-x\n", + printf("SLBA: 0x%-8"PRIx64" WP: 0x%-8"PRIx64" Cap: 0x%-8"PRIx64" State: %-12s Type: %-14s Attrs: 0x%-x\n", (uint64_t)le64_to_cpu(desc->zslba), (uint64_t)le64_to_cpu(desc->wp), (uint64_t)le64_to_cpu(desc->zcap), zone_state_to_string(desc->zs >> 4), zone_type_to_string(desc->zt), desc->za); -- 2.49.0