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

Reply via email to