Commit 7f146f13 authored by Pavel Emelyanov's avatar Pavel Emelyanov

poage-xfer: Cleanup xfer logging

Signed-off-by: 's avatarPavel Emelyanov <xemul@parallels.com>
parent 485cbda1
...@@ -309,13 +309,15 @@ int page_xfer_dump_pages(struct page_xfer *xfer, struct page_pipe *pp, ...@@ -309,13 +309,15 @@ int page_xfer_dump_pages(struct page_xfer *xfer, struct page_pipe *pp,
struct page_pipe_buf *ppb; struct page_pipe_buf *ppb;
struct iovec *hole = NULL; struct iovec *hole = NULL;
pr_debug("Transfering pages:\n");
if (pp->free_hole) if (pp->free_hole)
hole = &pp->holes[0]; hole = &pp->holes[0];
list_for_each_entry(ppb, &pp->bufs, l) { list_for_each_entry(ppb, &pp->bufs, l) {
int i; int i;
pr_debug("Dump shmem pages %d/%d\n", ppb->pages_in, ppb->nr_segs); pr_debug("\tbuf %d/%d\n", ppb->pages_in, ppb->nr_segs);
for (i = 0; i < ppb->nr_segs; i++) { for (i = 0; i < ppb->nr_segs; i++) {
struct iovec *iov = &ppb->iov[i]; struct iovec *iov = &ppb->iov[i];
...@@ -333,7 +335,7 @@ int page_xfer_dump_pages(struct page_xfer *xfer, struct page_pipe *pp, ...@@ -333,7 +335,7 @@ int page_xfer_dump_pages(struct page_xfer *xfer, struct page_pipe *pp,
BUG_ON(iov->iov_base < (void *)off); BUG_ON(iov->iov_base < (void *)off);
iov->iov_base -= off; iov->iov_base -= off;
pr_debug("\t%p [%u]\n", iov->iov_base, pr_debug("\tp %p [%u]\n", iov->iov_base,
(unsigned int)(iov->iov_len / PAGE_SIZE)); (unsigned int)(iov->iov_len / PAGE_SIZE));
if (xfer->write_pagemap(xfer, iov)) if (xfer->write_pagemap(xfer, iov))
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment