From: Kay Sievers Date: Fri, 29 May 2009 11:21:38 +0000 (+0200) Subject: cdrom_id: add error message if open() fails X-Git-Tag: 174~1022 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e91ac78ffc62a7a4f10fc66ed492e5b67a11448a;p=systemd cdrom_id: add error message if open() fails --- diff --git a/extras/cdrom_id/cdrom_id.c b/extras/cdrom_id/cdrom_id.c index 921e5346..2306d9ad 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; }