From owner-freebsd-scsi Thu Sep 6 12: 6:13 2001 Delivered-To: freebsd-scsi@freebsd.org Received: from aslan.scsiguy.com (aslan.scsiguy.com [63.229.232.106]) by hub.freebsd.org (Postfix) with ESMTP id D62E737B403 for ; Thu, 6 Sep 2001 12:06:10 -0700 (PDT) Received: from scsiguy.com (localhost [127.0.0.1]) by aslan.scsiguy.com (8.11.5/8.11.5) with ESMTP id f86J64Y78966; Thu, 6 Sep 2001 13:06:04 -0600 (MDT) (envelope-from gibbs@scsiguy.com) Message-Id: <200109061906.f86J64Y78966@aslan.scsiguy.com> To: "Lars =?iso-8859-1?Q?K=F6ller?=" Cc: "Kenneth D. Merry" , freebsd-scsi@FreeBSD.ORG Subject: Re: Wire of SCSI devices gives warning messages In-Reply-To: Your message of "Thu, 06 Sep 2001 20:19:01 +0200." <200109061819.f86IJ1f01094@odie.lippe.de> Date: Thu, 06 Sep 2001 13:06:04 -0600 From: "Justin T. Gibbs" Sender: owner-freebsd-scsi@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org > >Hi! > >No. it doesn't help, with this patch more devices and every Hit needs to be initialized to 0 both inside and outside the loop or if you wanted to only do it once (but in a somewhat obfuscated way): while (hit = 0 && (i = resource_locate(i, periph_name)) != -1) { ... } Sorry for not looking at the code more closely when writing the patch. -- Justin To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-scsi" in the body of the message