From 68d9da9140b90c63f9c0a0a2befcf6ad58a264a2 Mon Sep 17 00:00:00 2001 From: Warner Losh Date: Mon, 29 Mar 2010 17:25:06 +0000 Subject: [PATCH] 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. --- sys/dev/malo/if_malo.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sys/dev/malo/if_malo.c b/sys/dev/malo/if_malo.c index 21354ef58f6..57e0d3d8fa3 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); }