From 5c9c528165bb0298cc5534bd724b18cd0bcb87cb Mon Sep 17 00:00:00 2001 From: avg Date: Sat, 7 May 2011 10:06:43 +0000 Subject: scsi_cd: silence READ_TOC errors in CDIOREADTOCHEADER ioctl An optical disk may not have a TOC (e.g. for blank media) and userland software may legitimately try to use CDIOREADTOCHEADER to find out about the TOC. Silence from: scsi@ MFC after: 10 days --- sys/cam/scsi/scsi_cd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sys/cam') diff --git a/sys/cam/scsi/scsi_cd.c b/sys/cam/scsi/scsi_cd.c index 3d81800..c1951ff 100644 --- a/sys/cam/scsi/scsi_cd.c +++ b/sys/cam/scsi/scsi_cd.c @@ -2138,7 +2138,7 @@ cdioctl(struct disk *dp, u_long cmd, void *addr, int flag, struct thread *td) ("trying to do CDIOREADTOCHEADER\n")); error = cdreadtoc(periph, 0, 0, (u_int8_t *)th, - sizeof (*th), /*sense_flags*/0); + sizeof (*th), /*sense_flags*/SF_NO_PRINT); if (error) { free(th, M_SCSICD); cam_periph_unlock(periph); -- cgit v1.1