aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThanos Makatos <thanos.makatos@nutanix.com>2019-11-02 11:58:20 +0000
committerThanos Makatos <thanos.makatos@nutanix.com>2019-11-05 15:54:10 +0000
commit062f818502cd0c78a7fe25ff2535f047c4030294 (patch)
tree0d35568c98eb3e2dd2cfaff23fcf5e6085a8268f
parent4d1d4dd5b4818ee35d9d9985095493bcf219d296 (diff)
downloadlibvfio-user-062f818502cd0c78a7fe25ff2535f047c4030294.zip
libvfio-user-062f818502cd0c78a7fe25ff2535f047c4030294.tar.gz
libvfio-user-062f818502cd0c78a7fe25ff2535f047c4030294.tar.bz2
don't print page type when failing to add page
page_has_type() seems to be an internal function and it's not critically usefull anyway Signed-off-by: Thanos Makatos <thanos.makatos@nutanix.com>
-rw-r--r--kmod/muser.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/kmod/muser.c b/kmod/muser.c
index 72ce427..60f7a42 100644
--- a/kmod/muser.c
+++ b/kmod/muser.c
@@ -448,9 +448,9 @@ static int vm_insert_pages(struct vm_area_struct *const vma,
err = vm_insert_page(vma, vma->vm_start + i * PAGE_SIZE,
pages[i]);
if (unlikely(err)) {
- muser_dbg("count=%d, anon=%d, slab=%d, type=%d",
+ muser_dbg("count=%d, anon=%d, slab=%d",
page_count(pages[i]), PageAnon(pages[i]),
- PageSlab(pages[i]), page_has_type(pages[i]));
+ PageSlab(pages[i]));
muser_dbg("failed to insert page at %lx: %d",
vma->vm_start + i * PAGE_SIZE, err);
unmap_kernel_range((unsigned long)vma->vm_start,