From owner-freebsd-current Thu Nov 7 7:22:12 2002 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 05F5137B401; Thu, 7 Nov 2002 07:22:10 -0800 (PST) Received: from fafoe.dyndns.org (chello212186121237.14.vie.surfer.at [212.186.121.237]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7AF4143E8A; Thu, 7 Nov 2002 07:22:09 -0800 (PST) (envelope-from stefan@fafoe.dyndns.org) Received: by frog.fafoe (Postfix, from userid 1001) id C31F22B4; Thu, 7 Nov 2002 16:22:07 +0100 (CET) Date: Thu, 7 Nov 2002 16:22:07 +0100 From: Stefan Farfeleder To: Dag-Erling Smorgrav Cc: current@FreeBSD.ORG Subject: Re: alpha tinderbox failure Message-ID: <20021107152207.GC362@frog.fafoe> References: <200211071140.gA7BeRcG063936@beast.freebsd.org> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="0OAP2g/MAC+5xKAE" Content-Disposition: inline In-Reply-To: <200211071140.gA7BeRcG063936@beast.freebsd.org> User-Agent: Mutt/1.5.1i Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG --0OAP2g/MAC+5xKAE Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Thu, Nov 07, 2002 at 03:40:27AM -0800, Dag-Erling Smorgrav wrote: > /h/des/src/sys/dev/aic7xxx/aic79xx.c: In function `ahd_alloc': > /h/des/src/sys/dev/aic7xxx/aic79xx.c:4208: warning: unsigned int format, different type arg (arg 3) > /h/des/src/sys/dev/aic7xxx/aic79xx.c:4208: warning: unsigned int format, different type arg (arg 4) > /h/des/src/sys/dev/aic7xxx/aic79xx.c: In function `ahd_init_scbdata': > /h/des/src/sys/dev/aic7xxx/aic79xx.c:4601: warning: unsigned int format, different type arg (arg 3) Since I've seen this particular error at least 10 times and it is getting boring, here's an untested patch. Note that it requires the currently latest version 1.90 of subr_prf.c. A '-' that should probably be a '=' is fixed too. Regards, Stefan Farfeleder --0OAP2g/MAC+5xKAE Content-Type: text/plain; charset=us-ascii Content-Disposition: attachment; filename="aic79xx.c.patch" Index: aic79xx.c =================================================================== RCS file: /home/ncvs/src/sys/dev/aic7xxx/aic79xx.c,v retrieving revision 1.4 diff -u -r1.4 aic79xx.c --- aic79xx.c 26 Sep 2002 22:53:59 -0000 1.4 +++ aic79xx.c 7 Nov 2002 14:23:40 -0000 @@ -4203,7 +4203,7 @@ } #ifdef AHD_DEBUG if ((ahd_debug & AHD_SHOW_MEMORY) != 0) { - printf("%s: scb size = 0x%x, hscb size - 0x%x\n", + printf("%s: scb size = 0x%zx, hscb size = 0x%zx\n", ahd_name(ahd), sizeof(struct scb), sizeof(struct hardware_scb)); } @@ -4597,8 +4597,8 @@ } #ifdef AHD_DEBUG if ((ahd_debug & AHD_SHOW_MEMORY) != 0) - printf("%s: ahd_sglist_allocsize = 0x%x\n", ahd_name(ahd), - ahd_sglist_allocsize(ahd)); + printf("%s: ahd_sglist_allocsize = 0x%llx\n", ahd_name(ahd), + (unsigned long long)ahd_sglist_allocsize(ahd)); #endif scb_data->init_level++; --0OAP2g/MAC+5xKAE-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message