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.
This commit is contained in:
Peter Jones
2011-06-06 20:15:21 +02:00
committed by Kay Sievers
parent 812bfef52f
commit 761e089b0d
+1 -1
View File
@@ -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;