aboutsummaryrefslogtreecommitdiffstats
path: root/xen/common/xenoprof.c
diff options
context:
space:
mode:
authorKeir Fraser <keir.fraser@citrix.com>2009-01-26 16:19:42 +0000
committerKeir Fraser <keir.fraser@citrix.com>2009-01-26 16:19:42 +0000
commiteb063a09b327cf3936d2b179329a9cf3f659c07d (patch)
tree4356e79cc2fdf67e4ba020b25cff7daa85064d16 /xen/common/xenoprof.c
parent87fbac35f72930c06eb4cdd0f668765986ff3027 (diff)
downloadxen-eb063a09b327cf3936d2b179329a9cf3f659c07d.tar.gz
xen-eb063a09b327cf3936d2b179329a9cf3f659c07d.tar.bz2
xen-eb063a09b327cf3936d2b179329a9cf3f659c07d.zip
x86_64: Widen page counts to avoid overflow.
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
Diffstat (limited to 'xen/common/xenoprof.c')
-rw-r--r--xen/common/xenoprof.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/xen/common/xenoprof.c b/xen/common/xenoprof.c
index a7960313ef..0d508c20c8 100644
--- a/xen/common/xenoprof.c
+++ b/xen/common/xenoprof.c
@@ -142,8 +142,8 @@ share_xenoprof_page_with_guest(struct domain *d, unsigned long mfn, int npages)
struct page_info *page = mfn_to_page(mfn + i);
if ( (page->count_info & (PGC_allocated|PGC_count_mask)) != 0 )
{
- gdprintk(XENLOG_INFO, "mfn 0x%lx page->count_info 0x%x\n",
- mfn + i, page->count_info);
+ gdprintk(XENLOG_INFO, "mfn 0x%lx page->count_info 0x%lx\n",
+ mfn + i, (unsigned long)page->count_info);
return -EBUSY;
}
page_set_owner(page, NULL);