All of lore.kernel.org
 help / color / mirror / Atom feed
From: jeff.lien@wdc.com (Jeff Lien)
Subject: [PATCH] NVMe-CLI Fix id-ns fpi field when Human Readable option selected.
Date: Thu, 21 Jun 2018 13:58:17 -0500	[thread overview]
Message-ID: <20180621185817.1297-1-jeff.lien@wdc.com> (raw)

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(-)

diff --git a/nvme-print.c b/nvme-print.c
index 4e7cb9f..25a4e03 100644
--- a/nvme-print.c
+++ b/nvme-print.c
@@ -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");
 }
 
-- 
2.14.2.746.g8fb8a94

             reply	other threads:[~2018-06-21 18:58 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-06-21 18:58 Jeff Lien [this message]
2018-06-21 20:32 ` [PATCH] NVMe-CLI Fix id-ns fpi field when Human Readable option selected Keith Busch
  -- strict thread matches above, loose matches on Subject: below --
2018-05-15 19:53 Jeff Lien

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20180621185817.1297-1-jeff.lien@wdc.com \
    --to=jeff.lien@wdc.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.