diff options
author | Kenneth R Westerback <krw@cvs.openbsd.org> | 2010-02-27 00:03:54 +0000 |
---|---|---|
committer | Kenneth R Westerback <krw@cvs.openbsd.org> | 2010-02-27 00:03:54 +0000 |
commit | 6919f10ec4f9525b5e6429ab03752200ed281967 (patch) | |
tree | 32ad0756ba139808ce612f5788c1b9a2f412ffa4 /sys/scsi/scsi_ioctl.c | |
parent | 7274582b849a4fb8c605ec43c3a68f5b3c3e2f45 (diff) |
Don't print sense info for ioctl's. Let the userland program decide
what to tell the user. Silences cdio and cdrecord while probing
media.
ok dlg@ marco@ deraadt@
Diffstat (limited to 'sys/scsi/scsi_ioctl.c')
-rw-r--r-- | sys/scsi/scsi_ioctl.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/scsi/scsi_ioctl.c b/sys/scsi/scsi_ioctl.c index a65c41e1fc5..58cc199333a 100644 --- a/sys/scsi/scsi_ioctl.c +++ b/sys/scsi/scsi_ioctl.c @@ -1,4 +1,4 @@ -/* $OpenBSD: scsi_ioctl.c,v 1.39 2010/01/04 00:45:58 dlg Exp $ */ +/* $OpenBSD: scsi_ioctl.c,v 1.40 2010/02/27 00:03:53 krw Exp $ */ /* $NetBSD: scsi_ioctl.c,v 1.23 1996/10/12 23:23:17 christos Exp $ */ /* @@ -128,6 +128,7 @@ scsi_ioc_cmd(struct scsi_link *link, scsireq_t *screq) xs->flags |= SCSI_DATA_OUT; } + xs->flags |= SCSI_SILENT; /* User is responsible for errors. */ xs->timeout = screq->timeout; xs->retries = 0; /* user must do the retries *//* ignored */ |