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 15:36 +0200, Ingo Molnar wrote:
    > * Peter Zijlstra <peterz@infradead.org> wrote:
    >
    > > @@ -857,15 +860,19 @@ int kptr_restrict __read_mostly;
    > > * correctness of the format string and va_list arguments.
    > > * - 'K' For a kernel pointer that should be hidden from unprivileged users
    > > * - 'NF' For a netdev_features_t
    > > + * - 'b' For a bitmap, consumes 2 args, second is int
    >
    > hm, won't the second arg confuse gcc's printf format checker?


    Ah, yes, I suppose I could abuse something like %*pb. Let me try that.


    \
     
     \ /
      Last update: 2012-05-09 16:21    [W:0.023 / U:0.252 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site