From a785cb07ea0c5afdcc8e49c57017ad3fb8c84335 Mon Sep 17 00:00:00 2001 From: David Gwynne Date: Mon, 16 Feb 2009 00:05:04 +0000 Subject: 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@ --- sys/scsi/scsiconf.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'sys') 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(); -- cgit v1.2.3