]> xenbits.xensource.com Git - people/royger/xen.git/commitdiff
libxc/bitops: correct comment for bitmap_size
authorOlaf Hering <olaf@aepfle.de>
Tue, 5 Sep 2017 09:03:38 +0000 (11:03 +0200)
committerWei Liu <wei.liu2@citrix.com>
Tue, 5 Sep 2017 16:35:57 +0000 (17:35 +0100)
The returned value represents now units of bytes instead of longs.

Fixes commit 11d0044a16 ("tools/libxc: Modify bitmap operations to
take void pointers").

Signed-off-by: Olaf Hering <olaf@aepfle.de>
Acked-by: Wei Liu <wei.liu2@citrix.com>
tools/libxc/xc_bitops.h

index 3e7a544c9dd37eb83e7848fd917ede658571420c..0951e8267ddba765415f235b61e9a8781ef4e504 100644 (file)
@@ -13,7 +13,7 @@
 #define BITMAP_ENTRY(_nr,_bmap) ((_bmap))[(_nr) / 8]
 #define BITMAP_SHIFT(_nr) ((_nr) % 8)
 
-/* calculate required space for number of longs needed to hold nr_bits */
+/* calculate required space for number of bytes needed to hold nr_bits */
 static inline int bitmap_size(int nr_bits)
 {
     return (nr_bits + 7) / 8;