diff mbox

libxc/bitops: correct comment for bitmap_size

Message ID 20170905090339.26749-1-olaf@aepfle.de (mailing list archive)
State New, archived
Headers show

Commit Message

Olaf Hering Sept. 5, 2017, 9:03 a.m. UTC
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>
---
 tools/libxc/xc_bitops.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Wei Liu Sept. 5, 2017, 1:23 p.m. UTC | #1
On Tue, Sep 05, 2017 at 11:03:38AM +0200, Olaf Hering wrote:
> 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>
diff mbox

Patch

diff --git a/tools/libxc/xc_bitops.h b/tools/libxc/xc_bitops.h
index 3e7a544c9d..0951e8267d 100644
--- a/tools/libxc/xc_bitops.h
+++ b/tools/libxc/xc_bitops.h
@@ -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;