summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sys/scsi/scsiconf.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/scsi/scsiconf.c b/sys/scsi/scsiconf.c
index ce3813d5430..11b979d9ba3 100644
--- a/sys/scsi/scsiconf.c
+++ b/sys/scsi/scsiconf.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: scsiconf.c,v 1.136 2009/02/16 00:05:03 dlg Exp $ */
+/* $OpenBSD: scsiconf.c,v 1.137 2009/02/16 21:13:31 krw Exp $ */
/* $NetBSD: scsiconf.c,v 1.57 1996/05/02 01:09:01 neil Exp $ */
/*
@@ -748,8 +748,8 @@ scsi_probedev(struct scsibus_softc *scsi, int target, int lun)
*/
#ifdef SCSIDEBUG
if (((1 << sc_link->scsibus) & scsidebug_buses) &&
- ((1 << target) & scsidebug_targets) &&
- ((1 << lun) & scsidebug_luns))
+ ((target < 32) && ((1 << target) & scsidebug_targets)) &&
+ ((lun < 32) && ((1 << lun) & scsidebug_luns)))
sc_link->flags |= scsidebug_level;
#endif /* SCSIDEBUG */