From: Wei Yongjun <yjwei@cn.fujitsu.com>
To: "xen-devel@lists.xensource.com" <xen-devel@lists.xensource.com>
Subject: [PATCH] xenpaging: Fix build error of xenpaging tool
Date: Fri, 18 Dec 2009 13:44:31 +0800 [thread overview]
Message-ID: <4B2B16BF.3010201@cn.fujitsu.com> (raw)
This patch fixed build error of xenpaging tool under x86_32.
Signed-off-by: Wei Yongjun <yjwei@cn.fujitsu.com>
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 <stdlib.h>
+#include <inttypes.h>
#include <xc_private.h>
#include <xen/mem_event.h>
@@ -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 */
reply other threads:[~2009-12-18 5:44 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4B2B16BF.3010201@cn.fujitsu.com \
--to=yjwei@cn.fujitsu.com \
--cc=xen-devel@lists.xensource.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.