1
0
mirror of https://github.com/systemd/systemd.git synced 2024-10-28 03:25:31 +03:00

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 13:30:31 -04:00 committed by Kay Sievers
parent 812bfef52f
commit 761e089b0d

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;