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

Peter Zijlstra
2012-05-09T17:23:50Z

On Wed, 2012-05-09 at 10:15 -0700, Linus Torvalds wrote:
>
> The "bc" and "bn" would work, except for the fact that I doubt they
> are printed out enough to matter.

There's a number %pbc candidates in the scheduler that would be nice to
not have to do manually.

> 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 :/

> But the whole va_args games you play are not acceptable. %p *will*
> continue to take a void *, and nothing else.

The va_args() games are dead.