Skip to contentSkip to conversation

ioemu: build fix: use TARGET_PAGE_SIZE

PATCH New Christoph Egger 1 participant 1 message Aug 11, 2009

lore
Share & tools
lore
#0 lore raw

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.

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
index 89ecf44..11ac4d0 100644
@@ -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