Skip to content

Commit

Permalink
Fix compile errors when enabling Xen debug logging.
Browse files Browse the repository at this point in the history
Signed-off-by: Sander Eikelenboom <linux@eikelenboom.it>
Acked-by: Stefano Stabellini <stefano.stabellini@eu.citrix.com>
(cherry picked from commit f1b8caf)

Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>
  • Loading branch information
linux-eikelenboom-it authored and mdroth committed Jan 21, 2013
1 parent df50a7e commit e766724
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
5 changes: 3 additions & 2 deletions hw/xen_pt.c
Expand Up @@ -671,7 +671,8 @@ static int xen_pt_initfn(PCIDevice *d)
s->is_virtfn = s->real_device.is_virtfn;
if (s->is_virtfn) {
XEN_PT_LOG(d, "%04x:%02x:%02x.%d is a SR-IOV Virtual Function\n",
s->real_device.domain, bus, slot, func);
s->real_device.domain, s->real_device.bus,
s->real_device.dev, s->real_device.func);
}

/* Initialize virtualized PCI configuration (Extended 256 Bytes) */
Expand Down Expand Up @@ -752,7 +753,7 @@ static int xen_pt_initfn(PCIDevice *d)
memory_listener_register(&s->memory_listener, &address_space_memory);
memory_listener_register(&s->io_listener, &address_space_io);
XEN_PT_LOG(d, "Real physical device %02x:%02x.%d registered successfuly!\n",
bus, slot, func);
s->hostaddr.bus, s->hostaddr.slot, s->hostaddr.function);

return 0;
}
Expand Down
7 changes: 4 additions & 3 deletions xen-all.c
Expand Up @@ -292,7 +292,8 @@ static int xen_add_to_physmap(XenIOState *state,
return -1;

go_physmap:
DPRINTF("mapping vram to %llx - %llx\n", start_addr, start_addr + size);
DPRINTF("mapping vram to %"HWADDR_PRIx" - %"HWADDR_PRIx"\n",
start_addr, start_addr + size);

pfn = phys_offset >> TARGET_PAGE_BITS;
start_gpfn = start_addr >> TARGET_PAGE_BITS;
Expand Down Expand Up @@ -365,8 +366,8 @@ static int xen_remove_from_physmap(XenIOState *state,
phys_offset = physmap->phys_offset;
size = physmap->size;

DPRINTF("unmapping vram to %llx - %llx, from %llx\n",
phys_offset, phys_offset + size, start_addr);
DPRINTF("unmapping vram to %"HWADDR_PRIx" - %"HWADDR_PRIx", from ",
"%"HWADDR_PRIx"\n", phys_offset, phys_offset + size, start_addr);

size >>= TARGET_PAGE_BITS;
start_addr >>= TARGET_PAGE_BITS;
Expand Down

0 comments on commit e766724

Please sign in to comment.