]> xenbits.xensource.com Git - people/julieng/freebsd.git/commitdiff
xen/blkback: Fix string format when XBB_DEBUG is enabled
authorJulien Grall <julien.grall@linaro.org>
Sat, 7 Jun 2014 21:50:31 +0000 (22:50 +0100)
committerJulien Grall <julien.grall@citrix.com>
Mon, 19 Oct 2015 14:50:58 +0000 (15:50 +0100)
host_addr is typed uint64_t, therefore we should use PRIx64 to print correctly
the value on every architecture.

sys/dev/xen/blkback/blkback.c

index 7913c4314a2083ad2d58797465f3b7123152ba48..a97314be4b2a5486667a40644cb6578f10a71352 100644 (file)
@@ -1741,7 +1741,7 @@ xbb_dispatch_io(struct xbb_softc *xbb, struct xbb_xen_reqlist *reqlist)
                if (__predict_false(map->status != 0)) {
                        DPRINTF("invalid buffer -- could not remap "
                                "it (%d)\n", map->status);
-                       DPRINTF("Mapping(%d): Host Addr 0x%lx, flags "
+                       DPRINTF("Mapping(%d): Host Addr 0x%"PRIx64", flags "
                                "0x%x ref 0x%x, dom %d\n", seg_idx,
                                map->host_addr, map->flags, map->ref,
                                map->dom);