]> www.infradead.org Git - users/hch/nvme-cli.git/commitdiff
Remove lx text from reporting
authorMatias Bjørling <matias.bjorling@wdc.com>
Mon, 22 Jun 2020 13:37:41 +0000 (13:37 +0000)
committerKeith Busch <kbusch@kernel.org>
Mon, 22 Jun 2020 18:18:40 +0000 (12:18 -0600)
When reporting zones, the lx text was not removed when the type was
changed to be PRIx64.

Signed-off-by: Matias Bjørling <matias.bjorling@wdc.com>
nvme-print.c

index 7e9782e79f71b158e9f51812e7ed5ec96ae6755f..3edcbd9f0632e2e0be77721947d63dfbfc94dd42 100644 (file)
@@ -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);