diff options
author | David Gwynne <dlg@cvs.openbsd.org> | 2009-08-08 09:33:51 +0000 |
---|---|---|
committer | David Gwynne <dlg@cvs.openbsd.org> | 2009-08-08 09:33:51 +0000 |
commit | 95d2f3a3df92660fca19f14f31b19af538aedf84 (patch) | |
tree | ecf5a6eeaa4ed38dc6b2bb59232b186ef0511b8f /sys | |
parent | 83ab7e56bf952618cc4b6be261bd55f336429363 (diff) |
if the adapters wwn fields are set, print them out when attaching scsibus.
we need this to get some clue as to which ports are which on an fc fabric.
requested by and ok deraadt@
Diffstat (limited to 'sys')
-rw-r--r-- | sys/scsi/scsiconf.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/sys/scsi/scsiconf.c b/sys/scsi/scsiconf.c index c6e437e307f..3c15768c5b3 100644 --- a/sys/scsi/scsiconf.c +++ b/sys/scsi/scsiconf.c @@ -1,4 +1,4 @@ -/* $OpenBSD: scsiconf.c,v 1.138 2009/02/16 21:19:07 miod Exp $ */ +/* $OpenBSD: scsiconf.c,v 1.139 2009/08/08 09:33:50 dlg Exp $ */ /* $NetBSD: scsiconf.c,v 1.57 1996/05/02 01:09:01 neil Exp $ */ /* @@ -165,6 +165,11 @@ scsibusattach(struct device *parent, struct device *self, void *aux) printf(": %d targets", sb->sc_buswidth); if (sb->adapter_link->adapter_target < sb->sc_buswidth) printf(", initiator %d", sb->adapter_link->adapter_target); + if (sb->adapter_link->port_wwn != 0x0 && + sb->adapter_link->node_wwn != 0x0) { + printf(", WWPN %016llx, WWNN %016llx", + sb->adapter_link->port_wwn, sb->adapter_link->node_wwn); + } printf("\n"); /* Initialize shared data. */ |