[libvirt] [PATCH v2 2/7] util: Add API for converting virBitmap into printable string

Jiri Denemark jdenemar at redhat.com
Thu Feb 24 11:19:09 UTC 2011


On Tue, Feb 22, 2011 at 10:07:35 -0700, Eric Blake wrote:
> On 02/22/2011 09:48 AM, Jiri Denemark wrote:
> > 
> > ---
> > Notes:
> >     Version 2:
> >     - modified for unsigned long base type
> > 
> > +    while (sz--) {
> > +        virBufferVSprintf(&buf, "%0*lx",
> > +                          VIR_BITMAP_BITS_PER_UNIT / 4,
> > +                          bitmap->map[sz]);
> 
> Yep, that (int) cast in patch 1 makes sense now (I guessed this would be
> the reason for the cast, which is why I didn't point it out on patch 1).
> 
> ACK.

Thanks, pushed.

Jirka




More information about the libvir-list mailing list