i needed something like this to build a kernel with -DSCSIDEBUG

-f
-- 
the next sentence is true.  the last sentence was false.
Index: uha.c
===================================================================
RCS file: /cvs/src/sys/dev/ic/uha.c,v
retrieving revision 1.24
diff -u -p -r1.24 uha.c
--- uha.c       14 Sep 2014 14:17:25 -0000      1.24
+++ uha.c       1 Jul 2015 21:09:13 -0000
@@ -358,7 +358,7 @@ uha_scsi_cmd(xs)
                 * Set up the scatter gather block
                 */
                SC_DEBUG(sc_link, SDEV_DB4,
-                   ("%d @0x%x:- ", xs->datalen, xs->data));
+                   ("%d @0x%x:- ", xs->datalen, (u_int32_t)xs->data));
                datalen = xs->datalen;
                thiskv = (int) xs->data;
                thisphys = KVTOPHYS(thiskv);
@@ -369,7 +369,7 @@ uha_scsi_cmd(xs)
                        /* put in the base address */
                        sg->seg_addr = thisphys;
 
-                       SC_DEBUGN(sc_link, SDEV_DB4, ("0x%x", thisphys));
+                       SC_DEBUGN(sc_link, SDEV_DB4, ("0x%x", 
(u_int32_t)thisphys));
 
                        /* do it at least once */
                        nextphys = thisphys;

Reply via email to