ioemu: build fix: use TARGET_PAGE_SIZE
PATCH 1/1 ioemu: build fix: use TARGET_PAGE_SIZE
Hi!
Consistenly use TARGET_PAGE_SIZE in ioemu's block-vbd.c. Fixes build error on NetBSD.
Signed-off-by Christoph Egger <[email protected]>
Signature · 6 lines
---to satisfy European Law for business letters: Advanced Micro Devices GmbH Karl-Hammerschmidt-Str. 34, 85609 Dornach b. Muenchen Geschaeftsfuehrer: Thomas M. McCoy, Giuliano Meroni Sitz: Dornach, Gemeinde Aschheim, Landkreis Muenchen Registergericht Muenchen, HRB Nr. 43632
block-vbd.c +2 -2
@@ -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 ; }
_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel