summaryrefslogtreecommitdiffstats
path: root/sys/dev/malo
diff options
context:
space:
mode:
authorimp <imp@FreeBSD.org>2010-03-29 17:25:06 +0000
committerimp <imp@FreeBSD.org>2010-03-29 17:25:06 +0000
commitf724b9e1b7d44d2adb676a372dd65f0561567e00 (patch)
tree28c26e08783090882eef8abfd27feffc30ccc281 /sys/dev/malo
parent32c8cb70651e4740e925436477fb1842ffaaf445 (diff)
downloadFreeBSD-src-f724b9e1b7d44d2adb676a372dd65f0561567e00.zip
FreeBSD-src-f724b9e1b7d44d2adb676a372dd65f0561567e00.tar.gz
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.
Diffstat (limited to 'sys/dev/malo')
-rw-r--r--sys/dev/malo/if_malo.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/malo/if_malo.c b/sys/dev/malo/if_malo.c
index 21354ef..57e0d3d 100644
--- a/sys/dev/malo/if_malo.c
+++ b/sys/dev/malo/if_malo.c
@@ -168,8 +168,8 @@ malo_bar0_read4(struct malo_softc *sc, bus_size_t off)
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);
}
OpenPOWER on IntegriCloud