Skip to content

Commit

Permalink
nvme-print-stdout: fix storage tag size label
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
vincentkfu authored and igaw committed Jul 26, 2023
1 parent 04f6ab2 commit 5bd1296
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nvme-print-stdout.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 : "");
}
}
Expand Down

0 comments on commit 5bd1296

Please sign in to comment.