From: Peter Jones Date: Mon, 6 Jun 2011 17:30:31 +0000 (-0400) Subject: ata_id: show the error message when HDIO_GET_IDENTITY fails X-Git-Tag: 174~101 X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=commitdiff_plain;h=761e089b0db38d3a8297142496156e2bd5f802c1;p=elogind.git 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. --- diff --git a/extras/ata_id/ata_id.c b/extras/ata_id/ata_id.c index cb4a1a1f0..1e93fde4b 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;