summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKay Sievers <kay.sievers@vrfy.org>2009-05-29 13:21:38 +0200
committerKay Sievers <kay.sievers@vrfy.org>2009-05-29 13:21:38 +0200
commite91ac78ffc62a7a4f10fc66ed492e5b67a11448a (patch)
treeab340249f9770cf80bb760b1122a07fedcd019b6
parentdc383337b3e8c9128ea9c771527a55aabfff7297 (diff)
cdrom_id: add error message if open() fails
-rw-r--r--extras/cdrom_id/cdrom_id.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/extras/cdrom_id/cdrom_id.c b/extras/cdrom_id/cdrom_id.c
index 921e5346c9..2306d9ad71 100644
--- a/extras/cdrom_id/cdrom_id.c
+++ b/extras/cdrom_id/cdrom_id.c
@@ -570,6 +570,7 @@ int main(int argc, char *argv[])
fd = open(node, O_RDONLY | O_NONBLOCK);
if (fd < 0) {
info(udev, "unable to open '%s'\n", node);
+ fprintf(stderr, "unable to open '%s'\n", node);
rc = 1;
goto exit;
}