chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
812bfef
)
ata_id: show the error message when HDIO_GET_IDENTITY fails
author
Peter Jones
<pjones@redhat.com>
Mon, 6 Jun 2011 17:30:31 +0000
(13:30 -0400)
committer
Kay 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
patch
|
blob
|
history
diff --git
a/extras/ata_id/ata_id.c
b/extras/ata_id/ata_id.c
index cb4a1a1f075b4a0587f7e953ba29e57ee2fde401..1e93fde4bf49362b48a2462b762ea70d148746c4 100644
(file)
--- 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;