[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20150112140015.GA25319@htj.dyndns.org>
Date: Mon, 12 Jan 2015 09:00:15 -0500
From: Tejun Heo <tj@...nel.org>
To: Peter Zijlstra <peterz@...radead.org>
Cc: akpm@...ux-foundation.org, linux-kernel@...r.kernel.org,
Ingo Molnar <mingo@...hat.com>
Subject: Re: [PATCH 10/12] sched: use {cpu|node}mask pr_cont and seq output
functions
On Mon, Jan 12, 2015 at 08:55:21AM -0500, Tejun Heo wrote:
> On Mon, Jan 12, 2015 at 02:50:34PM +0100, Peter Zijlstra wrote:
> > See this thread:
> > https://lkml.org/lkml/2012/5/9/416
> > https://lkml.org/lkml/2012/5/9/353
> >
> > At the time I couldn't make it work :/
>
> Dang, I was worrying about the same thing, so the compiler does
> complain about using precision with a pointer. :(
Hmmm... I think I'd just go with "%*pb" and use the width as meaning
the bitwidth. It isn't perfect but should be a good enough compromise
especially given that fancy dynamic padding isn't something we do
often in the kernel and there's a recourse for that - printing to
string buffer and print that with %*s - which is what we need to do
right now anyway.
Thanks.
--
tejun
--
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