diff options
author | Alexander Yurchenko <grange@cvs.openbsd.org> | 2004-01-10 09:12:08 +0000 |
---|---|---|
committer | Alexander Yurchenko <grange@cvs.openbsd.org> | 2004-01-10 09:12:08 +0000 |
commit | 3877031aa4f75ba1b1f17dd57cd7cc243c7da5f2 (patch) | |
tree | 47cb0547041786e0242b0ffebd3e0794992aa676 | |
parent | 178ec66303331225325577f5b6cbd0da42665574 (diff) |
Print sense info only for valid key; from NetBSD.
ok tdeval@ krw@
-rw-r--r-- | sys/scsi/scsi_base.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/scsi/scsi_base.c b/sys/scsi/scsi_base.c index 51f2df1f397..857cd0cc9ec 100644 --- a/sys/scsi/scsi_base.c +++ b/sys/scsi/scsi_base.c @@ -1,4 +1,4 @@ -/* $OpenBSD: scsi_base.c,v 1.49 2004/01/08 17:30:52 krw Exp $ */ +/* $OpenBSD: scsi_base.c,v 1.50 2004/01/10 09:12:07 grange Exp $ */ /* $NetBSD: scsi_base.c,v 1.43 1997/04/02 02:29:36 mycroft Exp $ */ /* @@ -755,7 +755,7 @@ scsi_interpret_sense(xs) break; } - if ((xs->flags & SCSI_SILENT) == 0) + if (key && (xs->flags & SCSI_SILENT) == 0) scsi_print_sense(xs, 0); return error; |