NVMe-CLI Fix id-ns fpi field when Human Readable option selected.
PATCH 1/1 NVMe-CLI Fix id-ns fpi field when Human Readable option selected.
Currently when fpi = 0, the Format Progress Indicator Remaining is 100% and should be 0%. This patch fixes that condition.
Signed-off-by Jeff Lien <jeff.lien at wdc.com>
--- nvme-print.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
nvme-print.c +1 -1
@@ -573,7 +573,7 @@ static void show_nvme_id_ns_fpi(__u8 fpi) fpis, fpis ? "" : "Not ");if (fpis || (!fpis && fpii))printf (" [6:0] : %#x\tFormat Progress Indicator (Remaining %d%%)\n" , - fpii,100 - fpii); + fpii, fpii);printf ("\n" ); }
Signature · 1 line
2.14.2.746.g8fb8a94
PATCH 1/1 NVMe-CLI Fix id-ns fpi field when Human Readable option selected.
Quoted 4 lines · Jeff Lien
Currently when fpi = 0, the Format Progress Indicator Remaining is 100% and should be 0%. This patch fixes that condition.
Signed-off-by Jeff Lien <jeff.lien at wdc.com>
Thanks for the catch, patch applied.