From mboxrd@z Thu Jan 1 00:00:00 1970 From: Wei Yongjun Subject: [PATCH] xenpaging: Fix build error of xenpaging tool Date: Fri, 18 Dec 2009 13:44:31 +0800 Message-ID: <4B2B16BF.3010201@cn.fujitsu.com> Mime-Version: 1.0 Content-Type: text/plain; charset=GB2312 Content-Transfer-Encoding: 7bit Return-path: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: "xen-devel@lists.xensource.com" List-Id: xen-devel@lists.xenproject.org This patch fixed build error of xenpaging tool under x86_32. Signed-off-by: Wei Yongjun diff --git a/tools/xenpaging/xenpaging.c b/tools/xenpaging/xenpaging.c --- a/tools/xenpaging/xenpaging.c +++ b/tools/xenpaging/xenpaging.c @@ -21,6 +21,7 @@ #include +#include #include #include @@ -184,7 +185,7 @@ ERROR("Error allocating bitmap"); goto err; } - DPRINTF("max_pages = %lx\n", paging->domain_info->max_pages); + DPRINTF("max_pages = %"PRIx64"\n", paging->domain_info->max_pages); /* Initialise policy */ rc = policy_init(paging); @@ -565,7 +566,7 @@ } else { - DPRINTF("page already populated (domain = %d; vcpu = %d; gfn = %lx; paused = %ld)\n", + DPRINTF("page already populated (domain = %d; vcpu = %d; gfn = %lx; paused = %"PRIx64")\n", paging->mem_event.domain_id, req.vcpu_id, req.gfn, req.flags & MEM_EVENT_FLAG_VCPU_PAUSED); /* Tell Xen to resume the vcpu */