[CRIU] [PATCH 1/2] lazy-pages: uffd_zero: update error reporting

Mike Rapoport rppt at linux.vnet.ibm.com
Wed Jul 26 18:06:52 MSK 2017


Signed-off-by: Mike Rapoport <rppt at linux.vnet.ibm.com>
---
 criu/uffd.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/criu/uffd.c b/criu/uffd.c
index d67fabc..ab7c028 100644
--- a/criu/uffd.c
+++ b/criu/uffd.c
@@ -753,7 +753,8 @@ static int uffd_zero(struct lazy_pages_info *lpi, __u64 address, int nr_pages)
 	lp_debug(lpi, "zero page at 0x%llx\n", address);
 	rc = ioctl(lpi->lpfd.fd, UFFDIO_ZEROPAGE, &uffdio_zeropage);
 	if (rc) {
-		lp_err(lpi, "UFFDIO_ZEROPAGE error %d\n", rc);
+		lp_perror(lpi, "zero page failed: %Ld",
+			  uffdio_zeropage.zeropage);
 		return -1;
 	}
 
-- 
2.7.4



More information about the CRIU mailing list