svn commit: r205843 - head/sys/dev/malo

Warner Losh imp at FreeBSD.org
Mon Mar 29 17:25:06 UTC 2010


Author: imp
Date: Mon Mar 29 17:25:06 2010
New Revision: 205843
URL: http://svn.freebsd.org/changeset/base/205843

Log:
  Cast bus_space_t to a intmax_t and use %j to print it instead of
  assuming it is size_t sized and using %z.

Modified:
  head/sys/dev/malo/if_malo.c

Modified: head/sys/dev/malo/if_malo.c
==============================================================================
--- head/sys/dev/malo/if_malo.c	Mon Mar 29 17:24:23 2010	(r205842)
+++ head/sys/dev/malo/if_malo.c	Mon Mar 29 17:25:06 2010	(r205843)
@@ -168,8 +168,8 @@ malo_bar0_read4(struct malo_softc *sc, b
 static void
 malo_bar0_write4(struct malo_softc *sc, bus_size_t off, uint32_t val)
 {
-	DPRINTF(sc, MALO_DEBUG_FW, "%s: off 0x%zx val 0x%x\n",
-	    __func__, off, val);
+	DPRINTF(sc, MALO_DEBUG_FW, "%s: off 0x%jx val 0x%x\n",
+	    __func__, (intmax_t)off, val);
 
 	bus_space_write_4(sc->malo_io0t, sc->malo_io0h, off, val);
 }


More information about the svn-src-all mailing list