Skip to contentSkip to conversation

NVMe-CLI Fix id-ns fpi field when Human Readable option selected.

PATCH New Jeff Lien 2 participants 2 messages Jun 21, 2018 NVMe

lore
Share & tools
lore

Jeff Lien

author
#0 lore raw

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
index 4e7cb9f..25a4e03 100644
@@ -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
#1 lore raw

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.