Linux Hotplug development
 help / color / mirror / Atom feed
* [PATCH] Show the error message when HDIO_GET_IDENTITY fails.
@ 2011-06-06 17:30 Peter Jones
  2011-06-06 18:15 ` Kay Sievers
  0 siblings, 1 reply; 2+ messages in thread
From: Peter Jones @ 2011-06-06 17:30 UTC (permalink / raw)
  To: linux-hotplug

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 |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/extras/ata_id/ata_id.c b/extras/ata_id/ata_id.c
index cb4a1a1..1e93fde 100644
--- 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;
-- 
1.7.5.2


^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2011-06-06 18:15 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-06-06 17:30 [PATCH] Show the error message when HDIO_GET_IDENTITY fails Peter Jones
2011-06-06 18:15 ` Kay Sievers

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox