From 95d2f3a3df92660fca19f14f31b19af538aedf84 Mon Sep 17 00:00:00 2001 From: David Gwynne Date: Sat, 8 Aug 2009 09:33:51 +0000 Subject: 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@ --- sys/scsi/scsiconf.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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. */ -- cgit v1.2.3