Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 29 Mar 2010 17:25:06 +0000 (UTC)
From:      Warner Losh <imp@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r205843 - head/sys/dev/malo
Message-ID:  <201003291725.o2THP6a4021678@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
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);
 }



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