]> xenbits.xensource.com Git - qemu-xen-4.5-testing.git/commitdiff
consistently use TARGET_PAGE_SIZE in block-vbd.c
authorIan Jackson <ian.jackson@eu.citrix.com>
Fri, 11 Sep 2009 17:23:19 +0000 (18:23 +0100)
committerIan Jackson <Ian.Jackson@eu.citrix.com>
Fri, 11 Sep 2009 17:23:19 +0000 (18:23 +0100)
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@amd.com>
block-vbd.c

index 89ecf44b3ef6805750634cdb0c9c1e6368695039..56794f61c3c26b3bd5a4d59c1c8dcf1b928c77ff 100644 (file)
@@ -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;
     }