Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 15 Nov 2002 12:05:22 -0800 (PST)
From:      Archie Cobbs <archie@dellroad.org>
To:        current@FreeBSD.ORG
Cc:        grog@FreeBSD.ORG
Subject:   Re: alpha tinderbox failure
Message-ID:  <200211152005.gAFK5MRL036689@arch20m.dellroad.org>
In-Reply-To: <200211151138.gAFBctWM023811@beast.freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help
Dag-Erling Smorgrav wrote:
> ===> vinum
> "Makefile", line 4441: warning: duplicate script for target "geom_bsd.o" ignored
> cc1: warnings being treated as errors
> /h/des/src/sys/dev/aic7xxx/aic79xx_osm.c: In function `ahd_ddb_in':
> /h/des/src/sys/dev/aic7xxx/aic79xx_osm.c:1931: warning: unsigned int format, different type arg (arg 2)
> /h/des/src/sys/dev/aic7xxx/aic79xx_osm.c: In function `ahd_ddb_out':
> /h/des/src/sys/dev/aic7xxx/aic79xx_osm.c:1991: warning: unsigned int format, different type arg (arg 2)
> /h/des/src/sys/dev/aic7xxx/aic79xx_osm.c:1991: warning: unsigned int format, different type arg (arg 4)
> /h/des/src/sys/dev/aic7xxx/aic79xx_osm.c:1991: warning: unsigned int format, different type arg (arg 5)
> *** Error code 1

I'm getting tired of this email.  Any objections to the patch below?

-Archie

__________________________________________________________________________
Archie Cobbs     *     Packet Design     *     http://www.packetdesign.com

Index: aic79xx_osm.c
===================================================================
RCS file: /home/ncvs/src/sys/dev/aic7xxx/aic79xx_osm.c,v
retrieving revision 1.3
diff -u -r1.3 aic79xx_osm.c
--- aic79xx_osm.c	31 Aug 2002 06:51:15 -0000	1.3
+++ aic79xx_osm.c	15 Nov 2002 20:01:24 -0000
@@ -1927,7 +1927,7 @@
 	if (count <= 0)
 		count = 1;
 	while (--count >= 0) {
-		db_printf("%04x (M)%x: \t", addr,
+		db_printf("%04lx (M)%x: \t", (u_long)addr,
 			  ahd_inb(ahd_ddb_softc, MODE_PTR));
 		switch (size) {
 		case 1:
@@ -1986,9 +1986,9 @@
 			ahd_outl(ahd_ddb_softc, addr, new_value);
 			break;
 		}
-		db_printf("%04x (M)%x: \t0x%x\t=\t0x%x",
-			  addr, ahd_inb(ahd_ddb_softc, MODE_PTR),
-			  old_value, new_value);
+		db_printf("%04lx (M)%x: \t0x%lx\t=\t0x%lx",
+			  (u_long)addr, ahd_inb(ahd_ddb_softc, MODE_PTR),
+			  (u_long)old_value, (u_long)new_value);
 		addr += size;
 	}
 	db_skip_to_eol();

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?200211152005.gAFK5MRL036689>