From 761e089b0db38d3a8297142496156e2bd5f802c1 Mon Sep 17 00:00:00 2001 From: Peter Jones Date: Mon, 6 Jun 2011 13:30:31 -0400 Subject: 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. --- extras/ata_id/ata_id.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- cgit v1.2.3-54-g00ecf