summaryrefslogtreecommitdiff
path: root/extras
diff options
context:
space:
mode:
authorPeter Jones <pjones@redhat.com>2011-06-06 13:30:31 -0400
committerKay Sievers <kay.sievers@vrfy.org>2011-06-06 20:15:21 +0200
commit761e089b0db38d3a8297142496156e2bd5f802c1 (patch)
treeeb1e5ba3abd3ed2226060aa49a58d528236ced6f /extras
parent812bfef52fd6a9f5d6dffb1ad790252e672689c5 (diff)
ata_id: show the error message when HDIO_GET_IDENTITY fails
Show an error message so that it's possible to determine why the HDIO_GET_IDENTITY ioctl has failed.
Diffstat (limited to 'extras')
-rw-r--r--extras/ata_id/ata_id.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/extras/ata_id/ata_id.c b/extras/ata_id/ata_id.c
index cb4a1a1f07..1e93fde4bf 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;