From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753323AbbALOA3 (ORCPT ); Mon, 12 Jan 2015 09:00:29 -0500 Received: from mail-qa0-f45.google.com ([209.85.216.45]:63268 "EHLO mail-qa0-f45.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751641AbbALOAZ (ORCPT ); Mon, 12 Jan 2015 09:00:25 -0500 Date: Mon, 12 Jan 2015 09:00:15 -0500 From: Tejun Heo To: Peter Zijlstra Cc: akpm@linux-foundation.org, linux-kernel@vger.kernel.org, Ingo Molnar Subject: Re: [PATCH 10/12] sched: use {cpu|node}mask pr_cont and seq output functions Message-ID: <20150112140015.GA25319@htj.dyndns.org> References: <1418226774-30215-1-git-send-email-tj@kernel.org> <1418226774-30215-11-git-send-email-tj@kernel.org> <20141215103915.GX29390@twins.programming.kicks-ass.net> <20150112133145.GY25319@htj.dyndns.org> <20150112135034.GC25256@twins.programming.kicks-ass.net> <20150112135521.GZ25319@htj.dyndns.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20150112135521.GZ25319@htj.dyndns.org> User-Agent: Mutt/1.5.23 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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