From: chaitanya.kulkarni@hgst.com (Chaitanya Kulkarni)
Subject: [PATCH] nvme-cli: bug-fix: use right file name for perror.
Date: Sat, 25 Feb 2017 23:07:03 -0800 [thread overview]
Message-ID: <1488092823-21513-1-git-send-email-chaitanya.kulkarni@hgst.com> (raw)
Use right file descriptor while printing an error, when
--metadata option is used for read/write commands.
Signed-off-by: Chaitanya Kulkarni <chaitanya.kulkarni at hgst.com>
---
nvme.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/nvme.c b/nvme.c
index e693914..1d74b50 100644
--- a/nvme.c
+++ b/nvme.c
@@ -2283,7 +2283,7 @@ static int submit_io(int opcode, char *command, const char *desc,
if (strlen(cfg.metadata)){
mfd = open(cfg.metadata, flags, mode);
if (mfd < 0) {
- perror(cfg.data);
+ perror(cfg.metadata);
return EINVAL;
}
}
--
1.9.1
next reply other threads:[~2017-02-26 7:07 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-02-26 7:07 Chaitanya Kulkarni [this message]
2017-02-27 14:39 ` [PATCH] nvme-cli: bug-fix: use right file name for perror Sagi Grimberg
-- strict thread matches above, loose matches on Subject: below --
2017-03-12 23:13 Chaitanya Kulkarni
2017-03-12 23:13 ` Chaitanya Kulkarni
2017-03-13 16:54 ` Keith Busch
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=1488092823-21513-1-git-send-email-chaitanya.kulkarni@hgst.com \
--to=chaitanya.kulkarni@hgst.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).