[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-changelog] [qemu-xen-unstable] consistently use TARGET_PAGE_SIZE in block-vbd.c



commit cf4aa73460b0c597af3f48478212df5574b0123a
Author: Ian Jackson <ian.jackson@xxxxxxxxxxxxx>
Date:   Fri Sep 11 18:23:19 2009 +0100

    consistently use TARGET_PAGE_SIZE in block-vbd.c
    
    Attached patch makes ioemu's block-vbd.c use of TARGET_PAGE_SIZE.
    Fixes build error on NetBSD when building stubdom.
    
    Signed-off-by: Christoph Egger <Christoph.Egger@xxxxxxx>
---
 block-vbd.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/block-vbd.c b/block-vbd.c
index 89ecf44..56794f6 100644
--- a/block-vbd.c
+++ b/block-vbd.c
@@ -92,8 +92,8 @@ static int vbd_open(BlockDriverState *bs, const char 
*filename, int flags)
        printf("sector size is %d, we only support sector sizes that are 
multiple of %d\n", s->info.sector_size, SECTOR_SIZE);
        return -EIO;
     }
-    if (PAGE_SIZE % s->info.sector_size) {
-       printf("sector size is %d, we only support sector sizes that divide 
%llu\n", s->info.sector_size, PAGE_SIZE);
+    if (TARGET_PAGE_SIZE % s->info.sector_size) {
+       printf("sector size is %d, we only support sector sizes that divide 
%u\n", s->info.sector_size, TARGET_PAGE_SIZE);
        return -EIO;
     }
 
--
generated by git-patchbot for /home/xen/git/qemu-xen-unstable.git

_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.