[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-changelog] [xen-unstable] xenpaging: print gfn in failure case
# HG changeset patch # User Olaf Hering <olaf@xxxxxxxxx> # Date 1321804901 -3600 # Node ID fbc31627addee315a551dfd33846d5a8a37e8565 # Parent 8ddac056a89e0ba4c3180bf8983c00cf2b85ecb4 xenpaging: print gfn in failure case Signed-off-by: Olaf Hering <olaf@xxxxxxxxx> Committed-by: Ian Jackson <ian.jackson.citrix.com> --- diff -r 8ddac056a89e -r fbc31627adde tools/xenpaging/xenpaging.c --- a/tools/xenpaging/xenpaging.c Sun Nov 20 17:01:39 2011 +0100 +++ b/tools/xenpaging/xenpaging.c Sun Nov 20 17:01:41 2011 +0100 @@ -444,7 +444,7 @@ PROT_READ | PROT_WRITE, &gfn, 1); if ( page == NULL ) { - PERROR("Error mapping page"); + PERROR("Error mapping page %lx", victim->gfn); goto out; } @@ -452,7 +452,7 @@ ret = write_page(fd, page, i); if ( ret != 0 ) { - PERROR("Error copying page"); + PERROR("Error copying page %lx", victim->gfn); munmap(page, PAGE_SIZE); goto out; } @@ -464,7 +464,7 @@ victim->gfn); if ( ret != 0 ) { - PERROR("Error evicting page"); + PERROR("Error evicting page %lx", victim->gfn); goto out; } @@ -520,7 +520,7 @@ sleep(1); continue; } - PERROR("Error preparing for page in"); + PERROR("Error preparing %"PRI_xen_pfn" for page-in", gfn); goto out_map; } } @@ -532,7 +532,7 @@ PROT_READ | PROT_WRITE, &gfn, 1); if ( page == NULL ) { - PERROR("Error mapping page: page is null"); + PERROR("Error mapping page %"PRI_xen_pfn": page is null", gfn); goto out_map; } @@ -540,7 +540,7 @@ ret = read_page(fd, page, i); if ( ret != 0 ) { - PERROR("Error reading page"); + PERROR("Error reading page %"PRI_xen_pfn"", gfn); goto out; } @@ -710,7 +710,7 @@ rc = xenpaging_populate_page(paging, req.gfn, fd, i); if ( rc != 0 ) { - PERROR("Error populating page"); + PERROR("Error populating page %"PRIx64"", req.gfn); goto out; } } @@ -723,7 +723,7 @@ rc = xenpaging_resume_page(paging, &rsp, 1); if ( rc != 0 ) { - PERROR("Error resuming page"); + PERROR("Error resuming page %"PRIx64"", req.gfn); goto out; } @@ -754,7 +754,7 @@ rc = xenpaging_resume_page(paging, &rsp, 0); if ( rc != 0 ) { - PERROR("Error resuming"); + PERROR("Error resuming page %"PRIx64"", req.gfn); goto out; } } _______________________________________________ Xen-changelog mailing list Xen-changelog@xxxxxxxxxxxxxxxxxxx http://lists.xensource.com/xen-changelog
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |