Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 7 Nov 2002 16:22:07 +0100
From:      Stefan Farfeleder <e0026813@stud3.tuwien.ac.at>
To:        Dag-Erling Smorgrav <des@FreeBSD.ORG>
Cc:        current@FreeBSD.ORG
Subject:   Re: alpha tinderbox failure
Message-ID:  <20021107152207.GC362@frog.fafoe>
In-Reply-To: <200211071140.gA7BeRcG063936@beast.freebsd.org>
References:  <200211071140.gA7BeRcG063936@beast.freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help

--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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20021107152207.GC362>