WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-changelog

[Xen-changelog] [qemu-xen-unstable] consistently use TARGET_PAGE_SIZE in

To: xen-changelog@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-changelog] [qemu-xen-unstable] consistently use TARGET_PAGE_SIZE in block-vbd.c
From: Ian Jackson <Ian.Jackson@xxxxxxxxxxxxx>
Date: Fri, 11 Sep 2009 10:50:15 -0700
Delivery-date: Fri, 11 Sep 2009 10:50:40 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-changelog-request@lists.xensource.com?subject=help>
List-id: BK change log <xen-changelog.lists.xensource.com>
List-post: <mailto:xen-changelog@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=unsubscribe>
Reply-to: xen-devel@xxxxxxxxxxxxxxxxxxx
Sender: xen-changelog-bounces@xxxxxxxxxxxxxxxxxxx
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

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-changelog] [qemu-xen-unstable] consistently use TARGET_PAGE_SIZE in block-vbd.c, Ian Jackson <=