From: Jay Freyensee Date: Sat, 23 Jul 2016 01:24:11 +0000 (-0700) Subject: print "lbads" out, per spec X-Git-Tag: v0.9~17^2^2~1 X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=bf0b23ff0e969a91cdcda48ad3058b05054fd46c;p=users%2Fsagi%2Fnvme-cli.git print "lbads" out, per spec NVMe specfication lists the 'ds' field printed in nvme-cli as 'lbads'. Change to be consistent with the spec. Signed-off-by: Jay Freyensee --- diff --git a/nvme-print.c b/nvme-print.c index 0a310b26..54d3ebb7 100644 --- a/nvme-print.c +++ b/nvme-print.c @@ -506,7 +506,7 @@ void show_nvme_id_ns(struct nvme_id_ns *ns, unsigned int mode) ns->lbaf[i].rp == 1 ? "Better" : "Best", i == (ns->flbas & 0xf) ? "(in use)" : ""); else - printf("lbaf %2d : ms:%-3d ds:%-2d rp:%#x %s\n", i, + printf("lbaf %2d : ms:%-3d lbads:%-2d rp:%#x %s\n", i, le16toh(ns->lbaf[i].ms), ns->lbaf[i].ds, ns->lbaf[i].rp, i == (ns->flbas & 0xf) ? "(in use)" : ""); }