From e91ac78ffc62a7a4f10fc66ed492e5b67a11448a Mon Sep 17 00:00:00 2001 From: Kay Sievers Date: Fri, 29 May 2009 13:21:38 +0200 Subject: cdrom_id: add error message if open() fails --- extras/cdrom_id/cdrom_id.c | 1 + 1 file changed, 1 insertion(+) 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; } -- cgit v1.2.3-54-g00ecf