ivshmem: fix building when debug mode is enabled
authorLevente Kurusa <lkurusa@redhat.com>
Mon, 4 Aug 2014 15:06:20 +0000 (17:06 +0200)
committerMichael S. Tsirkin <mst@redhat.com>
Thu, 14 Aug 2014 11:22:25 +0000 (13:22 +0200)
ivsmem_offset was removed, however this debug statement was not updated.
Modify the statement to fit the new mechanic.

Signed-off-by: Levente Kurusa <lkurusa@redhat.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
hw/misc/ivshmem.c

index 768e5288bc2fb94ab1d2fdcb04de3f2948a59c37..71330023d5925f704053a7d86a9d045803af6b5c 100644 (file)
@@ -479,8 +479,8 @@ static void ivshmem_read(void *opaque, const uint8_t * buf, int flags)
                                    "ivshmem.bar2", s->ivshmem_size, map_ptr);
         vmstate_register_ram(&s->ivshmem, DEVICE(s));
 
-        IVSHMEM_DPRINTF("guest h/w addr = %" PRIu64 ", size = %" PRIu64 "\n",
-                         s->ivshmem_offset, s->ivshmem_size);
+        IVSHMEM_DPRINTF("guest h/w addr = %p, size = %" PRIu64 "\n",
+                         map_ptr, s->ivshmem_size);
 
         memory_region_add_subregion(&s->bar, 0, &s->ivshmem);