Re: [RFC][PATCH] printk: Add %pb to print bitmaps

Peter Zijlstra
2012-05-09T17:30:49Z

On Wed, 2012-05-09 at 19:26 +0200, Ingo Molnar wrote:
> * Peter Zijlstra <peterz@infradead.org> wrote:
>
> > > A "%.*pb" is the only interface that can work for a "sized"
> > > bitmap (with obviously fixed-length ones being possible with
> > > a "%.32bp" like thing)
> >
> > Right, sadly that also generates a warning :/
>
> Why not use what I suggested, %*pb? It also doubles as a width
> field in essence, as bitmap output is fundamentally fixed width.

The bitmap list output uses RLE and generates things like:

6-11,18-23

Its the stuff used for all the sched_domain output etc..