[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-changelog] One more try...



# HG changeset patch
# User smh22@xxxxxxxxxxxxxxxxxxxx
# Node ID e4e1674a747d4b69f194e8ccbc4dd72c481da5f0
# Parent  9c68f4a58aa90502023305efb31825c25af3ec9f
One more try...

Signed-off-by: Steven Hand <steven@xxxxxxxxxxxxx>

diff -r 9c68f4a58aa9 -r e4e1674a747d tools/libxc/xc_linux_save.c
--- a/tools/libxc/xc_linux_save.c       Wed Nov 16 17:28:09 2005
+++ b/tools/libxc/xc_linux_save.c       Wed Nov 16 17:41:43 2005
@@ -73,7 +73,7 @@
 */
 
 #define BITS_PER_LONG (sizeof(unsigned long) * 8) 
-#define BITMAP_SIZE   ((max_pfn + 7) / 8)
+#define BITMAP_SIZE   ((max_pfn + BITS_PER_LONG - 1) / 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


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.