From: Ian Jackson Date: Fri, 11 Sep 2009 17:23:19 +0000 (+0100) Subject: consistently use TARGET_PAGE_SIZE in block-vbd.c X-Git-Tag: xen-4.0.0-rc1~35 X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=cf4aa73460b0c597af3f48478212df5574b0123a;p=qemu-xen-4.2-testing.git 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 --- diff --git a/block-vbd.c b/block-vbd.c index 89ecf44b3..56794f61c 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; }