]> err.no Git - systemd/commitdiff
ata_id: show the error message when HDIO_GET_IDENTITY fails
authorPeter Jones <pjones@redhat.com>
Mon, 6 Jun 2011 17:30:31 +0000 (13:30 -0400)
committerKay Sievers <kay.sievers@vrfy.org>
Mon, 6 Jun 2011 18:15:21 +0000 (20:15 +0200)
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

index cb4a1a1f075b4a0587f7e953ba29e57ee2fde401..1e93fde4bf49362b48a2462b762ea70d148746c4 100644 (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;