[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <1336584641.2527.65.camel@twins>
Date: Wed, 09 May 2012 19:30:41 +0200
From: Peter Zijlstra <peterz@...radead.org>
To: Ingo Molnar <mingo@...nel.org>
Cc: Linus Torvalds <torvalds@...ux-foundation.org>,
Igor Mammedov <imammedo@...hat.com>,
Jiang Liu <liuj97@...il.com>, linux-kernel@...r.kernel.org,
pjt@...gle.com, tglx@...utronix.de, seto.hidetoshi@...fujitsu.com,
Andrew Morton <akpm@...ux-foundation.org>
Subject: Re: [RFC][PATCH] printk: Add %pb to print bitmaps
On Wed, 2012-05-09 at 19:26 +0200, Ingo Molnar wrote:
> * Peter Zijlstra <peterz@...radead.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..
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists