From dfaa4542c4af33722cd2aca965bad3b5719d384d Mon Sep 17 00:00:00 2001 From: Alexander Kartashov Date: Tue, 30 Apr 2013 06:05:28 +0000 Subject: [PATCH] page-xfer: fixed format strings Use the specifier %lu instead of %zu to print an unsinged long integer. Signed-off-by: Alexander Kartashov Signed-off-by: Pavel Emelyanov --- page-xfer.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/page-xfer.c b/page-xfer.c index 28f83066a..4a3562339 100644 --- a/page-xfer.c +++ b/page-xfer.c @@ -267,7 +267,7 @@ static int write_pagemap_to_server(struct page_xfer *xfer, static int write_pages_to_server(struct page_xfer *xfer, int p, unsigned long len) { - pr_debug("Splicing %zu bytes / %zu pages into socket\n", len, len / PAGE_SIZE); + pr_debug("Splicing %lu bytes / %lu pages into socket\n", len, len / PAGE_SIZE); if (splice(p, NULL, xfer->fd, NULL, len, SPLICE_F_MOVE) != len) { pr_perror("Can't write pages to socket");