]> www.infradead.org Git - users/sagi/nvme-cli.git/commitdiff
nvme-print-stdout: fix storage tag size label
authorVincent Fu <vincent.fu@samsung.com>
Tue, 25 Jul 2023 18:17:17 +0000 (18:17 +0000)
committerDaniel Wagner <wagi@monom.org>
Wed, 26 Jul 2023 06:36:38 +0000 (08:36 +0200)
The NVM Command Set Extended LBA Format Data Structure has Protection
Information Format (pif) and Storage Tag Size (sts) fields. The sts
field is incorrectly labeled in the non-verbose normal output.  Fix the
label.

Signed-off-by: Vincent Fu <vincent.fu@samsung.com>
nvme-print-stdout.c

index 9158f1b5f4d1115c9e51df453beed8e0e49df871..566571df0293a5b841f7da8964b97d6b210ae231 100644 (file)
@@ -2993,7 +2993,7 @@ static void stdout_nvm_id_ns(struct nvme_nvm_id_ns *nvm_ns, unsigned int nsid,
                                        pif == 1 ? "32b Guard" : "16b Guard",
                                        pif, sts, i == (ns->flbas & 0xf) ? in_use : "");
                else
-                       printf("elbaf %2d : pif:%d lbads:%-2d %s\n", i,
+                       printf("elbaf %2d : pif:%d sts:%-2d %s\n", i,
                                pif, sts, i == (ns->flbas & 0xf) ? in_use : "");
        }
 }