summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordlg <dlg@openbsd.org>2009-08-08 09:33:50 +0000
committerdlg <dlg@openbsd.org>2009-08-08 09:33:50 +0000
commit700bc256d7bcba8cc802a2ebe035027522d21af5 (patch)
tree60a967c7159bed39b1e947754faaf80c661305e6
parentalc(4) is a driver for the Atheros AR8131/AR8132 ethernet chip. (diff)
downloadwireguard-openbsd-700bc256d7bcba8cc802a2ebe035027522d21af5.tar.xz
wireguard-openbsd-700bc256d7bcba8cc802a2ebe035027522d21af5.zip
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@
-rw-r--r--sys/scsi/scsiconf.c7
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. */