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:
parent
812bfef52f
commit
761e089b0d
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user