summaryrefslogtreecommitdiff
path: root/sys/scsi
diff options
context:
space:
mode:
authorDavid Gwynne <dlg@cvs.openbsd.org>2009-02-16 00:05:04 +0000
committerDavid Gwynne <dlg@cvs.openbsd.org>2009-02-16 00:05:04 +0000
commita785cb07ea0c5afdcc8e49c57017ad3fb8c84335 (patch)
tree038390c4506b549303971db5c09d13d4ad4a1fb7 /sys/scsi
parent6c81ebc5d9a90a76b607b41978f06c3ae0e1921b (diff)
on some buses (eg sas and fc fabrics) the initiator id doesnt mean
anything. we represent that in the midlayre by moving the initiator id out of the buswidth. let's not print it in that case. ok deraadt@ kettenis@ krw@ marco@
Diffstat (limited to 'sys/scsi')
-rw-r--r--sys/scsi/scsiconf.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/sys/scsi/scsiconf.c b/sys/scsi/scsiconf.c
index 969cb16dd14..ce3813d5430 100644
--- a/sys/scsi/scsiconf.c
+++ b/sys/scsi/scsiconf.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: scsiconf.c,v 1.135 2008/07/22 01:01:31 dlg Exp $ */
+/* $OpenBSD: scsiconf.c,v 1.136 2009/02/16 00:05:03 dlg Exp $ */
/* $NetBSD: scsiconf.c,v 1.57 1996/05/02 01:09:01 neil Exp $ */
/*
@@ -161,8 +161,10 @@ scsibusattach(struct device *parent, struct device *self, void *aux)
if (sb->adapter_link->luns == 0)
sb->adapter_link->luns = 8;
- printf(": %d targets, initiator %d\n", sb->sc_buswidth,
- sb->adapter_link->adapter_target);
+ printf(": %d targets", sb->sc_buswidth);
+ if (sb->adapter_link->adapter_target < sb->sc_buswidth)
+ printf(", initiator %d", sb->adapter_link->adapter_target);
+ printf("\n");
/* Initialize shared data. */
scsi_init();