Re: CDROM not ready messages from kernel - necessary?

Gerd Knorr (kraxel@goldbach.in-berlin.de)
Tue, 27 Apr 1999 19:29:44 +0200


In lists.linux.kernel, you wrote:
>
> Hi there. This is a pet peeve that has been bothering me for years.
> This is the chance to "scratch my own personal itch".
>
> Is it necessary to have the kernel print the following message to
> the console and syslog every few seconds:
>
> ...
> Apr 26 21:36:03 home kernel: sr1: CDROM not ready. Make sure there is a disc in
> the drive.
> Apr 26 21:36:34 home last message repeated 60 times
> Apr 26 21:37:35 home last message repeated 119 times
> Apr 26 21:37:44 home last message repeated 19 times

No, it is'nt.

Gerd

----------------------------------------------------
--- linux/drivers/scsi/sr_ioctl.c~ Thu Mar 25 23:11:51 1999
+++ linux/drivers/scsi/sr_ioctl.c Tue Apr 27 19:26:39 1999
@@ -110,8 +110,8 @@
break;
}
}
- printk(KERN_INFO "sr%d: CDROM not ready. Make sure there is a disc in the drive.\n",target);
#ifdef DEBUG
+ printk(KERN_INFO "sr%d: CDROM not ready. Make sure there is a disc in the drive.\n",target);
print_sense("sr", SCpnt);
#endif
err = -ENOMEDIUM;

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/