[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-changelog] Fix annoying error introduced during cleanup. Oops.
# HG changeset patch # User smh22@xxxxxxxxxxxxxxxxxxxx # Node ID 9c68f4a58aa90502023305efb31825c25af3ec9f # Parent c5a49efa11d6e135437b9f7bc6b34f2c29153eb6 Fix annoying error introduced during cleanup. Oops. Signed-off-by: Steven Hand <steven@xxxxxxxxxxxxx> diff -r c5a49efa11d6 -r 9c68f4a58aa9 tools/libxc/xc_linux_save.c --- a/tools/libxc/xc_linux_save.c Wed Nov 16 17:03:48 2005 +++ b/tools/libxc/xc_linux_save.c Wed Nov 16 17:28:09 2005 @@ -73,7 +73,7 @@ */ #define BITS_PER_LONG (sizeof(unsigned long) * 8) -#define BITMAP_SIZE ((max_pfn + BITS_PER_LONG - 1) / BITS_PER_LONG) +#define BITMAP_SIZE ((max_pfn + 7) / 8) #define BITMAP_ENTRY(_nr,_bmap) \ ((unsigned long *)(_bmap))[(_nr)/BITS_PER_LONG] _______________________________________________ Xen-changelog mailing list Xen-changelog@xxxxxxxxxxxxxxxxxxx http://lists.xensource.com/xen-changelog
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |