Commit 00d6da9b authored by Jens Axboe's avatar Jens Axboe Committed by Linus Torvalds

[PATCH] cdrom: kill "open failed" error message

This triggers all the time with the various polled event programs,
change it to CD_OPEN so it's supressed by default.
Signed-off-by: default avatarJens Axboe <axboe@suse.de>
Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
parent 4ff57935
...@@ -1131,7 +1131,7 @@ int open_for_data(struct cdrom_device_info * cdi) ...@@ -1131,7 +1131,7 @@ int open_for_data(struct cdrom_device_info * cdi)
This ensures that the drive gets unlocked after a mount fails. This This ensures that the drive gets unlocked after a mount fails. This
is a goto to avoid bloating the driver with redundant code. */ is a goto to avoid bloating the driver with redundant code. */
clean_up_and_return: clean_up_and_return:
cdinfo(CD_WARNING, "open failed.\n"); cdinfo(CD_OPEN, "open failed.\n");
if (CDROM_CAN(CDC_LOCK) && cdi->options & CDO_LOCK) { if (CDROM_CAN(CDC_LOCK) && cdi->options & CDO_LOCK) {
cdo->lock_door(cdi, 0); cdo->lock_door(cdi, 0);
cdinfo(CD_OPEN, "door unlocked.\n"); cdinfo(CD_OPEN, "door unlocked.\n");
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment