lkml.org 
[lkml]   [2012]   [May]   [9]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: [RFC][PATCH] printk: Add %pb to print bitmaps
From
Date
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.


\
 
 \ /
  Last update: 2012-05-09 20:01    [W:0.354 / U:0.004 seconds]
©2003-2014 Jasper Spaans. Advertise on this site