From: Peter Jones <pjones@redhat.com>
To: linux-hotplug@vger.kernel.org
Subject: [PATCH] Show the error message when HDIO_GET_IDENTITY fails.
Date: Mon, 06 Jun 2011 17:30:31 +0000 [thread overview]
Message-ID: <1307381431-9021-1-git-send-email-pjones@redhat.com> (raw)
Show an error message so that it's possible to determine why the
HDIO_GET_IDENTITY ioctl has failed.
---
| 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
--git a/extras/ata_id/ata_id.c b/extras/ata_id/ata_id.c
index cb4a1a1..1e93fde 100644
--- a/extras/ata_id/ata_id.c
+++ b/extras/ata_id/ata_id.c
@@ -535,7 +535,7 @@ int main(int argc, char *argv[])
info(udev, "HDIO_GET_IDENTITY unsupported for '%s'\n", node);
rc = 2;
} else {
- err(udev, "HDIO_GET_IDENTITY failed for '%s'\n", node);
+ err(udev, "HDIO_GET_IDENTITY failed for '%s': %m\n", node);
rc = 3;
}
goto close;
--
1.7.5.2
next reply other threads:[~2011-06-06 17:30 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-06-06 17:30 Peter Jones [this message]
2011-06-06 18:15 ` [PATCH] Show the error message when HDIO_GET_IDENTITY fails Kay Sievers
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=1307381431-9021-1-git-send-email-pjones@redhat.com \
--to=pjones@redhat.com \
--cc=linux-hotplug@vger.kernel.org \
/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