From mboxrd@z Thu Jan 1 00:00:00 1970 From: Peter Jones Date: Mon, 06 Jun 2011 17:30:31 +0000 Subject: [PATCH] Show the error message when HDIO_GET_IDENTITY fails. Message-Id: <1307381431-9021-1-git-send-email-pjones@redhat.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: linux-hotplug@vger.kernel.org Show an error message so that it's possible to determine why the HDIO_GET_IDENTITY ioctl has failed. --- extras/ata_id/ata_id.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --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