From d18e173a07a9c1e7f087384a8832d295043136bb Mon Sep 17 00:00:00 2001 From: Wei Liu Date: Mon, 14 Oct 2013 13:53:53 +0100 Subject: xen: fix two errors when debug is enabled This patch fixes: 1. build error in xen_pt.c when XEN_PT_LOGGING_ENABLED is defined 2. debug output format string error when DEBUG_XEN is defined In the second case I also have the output info in consistent with the output in mapping function - that is, print start_addr instead of phys_offset. Signed-off-by: Sander Eikelenboom Signed-off-by: Wei Liu Signed-off-by: Stefano Stabellini --- xen-all.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'xen-all.c') diff --git a/xen-all.c b/xen-all.c index 9a27899ca1..4a594bdd9b 100644 --- a/xen-all.c +++ b/xen-all.c @@ -369,8 +369,8 @@ static int xen_remove_from_physmap(XenIOState *state, phys_offset = physmap->phys_offset; size = physmap->size; - DPRINTF("unmapping vram to %"HWADDR_PRIx" - %"HWADDR_PRIx", from ", - "%"HWADDR_PRIx"\n", phys_offset, phys_offset + size, start_addr); + DPRINTF("unmapping vram to %"HWADDR_PRIx" - %"HWADDR_PRIx", at " + "%"HWADDR_PRIx"\n", start_addr, start_addr + size, phys_offset); size >>= TARGET_PAGE_BITS; start_addr >>= TARGET_PAGE_BITS; -- cgit v1.2.1