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] 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

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-changelog] One more try..., Xen patchbot -unstable <=