Commit cb9094d8 authored by Alexander Kartashov's avatar Alexander Kartashov Committed by Pavel Emelyanov

page-pipe: fixed format strings

Use the format specifier %zu instead of %lu to print a size_t integer.
Signed-off-by: 's avatarAlexander Kartashov <alekskartashov@parallels.com>
Signed-off-by: 's avatarPavel Emelyanov <xemul@parallels.com>
parent 15b64d12
...@@ -190,13 +190,13 @@ void debug_show_page_pipe(struct page_pipe *pp) ...@@ -190,13 +190,13 @@ void debug_show_page_pipe(struct page_pipe *pp)
ppb->pages_in, ppb->nr_segs); ppb->pages_in, ppb->nr_segs);
for (i = 0; i < ppb->nr_segs; i++) { for (i = 0; i < ppb->nr_segs; i++) {
iov = &ppb->iov[i]; iov = &ppb->iov[i];
pr_debug("\t\t%p %lu\n", iov->iov_base, iov->iov_len / PAGE_SIZE); pr_debug("\t\t%p %zu\n", iov->iov_base, iov->iov_len / PAGE_SIZE);
} }
} }
pr_debug("* %u holes:\n", pp->free_hole); pr_debug("* %u holes:\n", pp->free_hole);
for (i = 0; i < pp->free_hole; i++) { for (i = 0; i < pp->free_hole; i++) {
iov = &pp->holes[i]; iov = &pp->holes[i];
pr_debug("\t%p %lu\n", iov->iov_base, iov->iov_len / PAGE_SIZE); pr_debug("\t%p %zu\n", iov->iov_base, iov->iov_len / PAGE_SIZE);
} }
} }
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