Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1759242Ab2EINoq (ORCPT ); Wed, 9 May 2012 09:44:46 -0400 Received: from merlin.infradead.org ([205.233.59.134]:57503 "EHLO merlin.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1757515Ab2EINoh convert rfc822-to-8bit (ORCPT ); Wed, 9 May 2012 09:44:37 -0400 Message-ID: <1336571049.2527.43.camel@twins> Subject: Re: [RFC][PATCH] printk: Add %pb to print bitmaps From: Peter Zijlstra To: Ingo Molnar Cc: Igor Mammedov , Jiang Liu , linux-kernel@vger.kernel.org, pjt@google.com, tglx@linutronix.de, seto.hidetoshi@jp.fujitsu.com, Andrew Morton , Linus Torvalds Date: Wed, 09 May 2012 15:44:09 +0200 In-Reply-To: <20120509133607.GA26124@gmail.com> References: <1336559908-32533-1-git-send-email-imammedo@redhat.com> <4FAA452A.1070909@gmail.com> <4FAA588B.5010404@redhat.com> <1336564330.2527.23.camel@twins> <4FAA5BFB.40309@redhat.com> <1336566096.2527.30.camel@twins> <1336566644.2527.33.camel@twins> <1336570043.2527.38.camel@twins> <20120509133607.GA26124@gmail.com> Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7BIT X-Mailer: Evolution 3.2.2- Mime-Version: 1.0 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 799 Lines: 18 On Wed, 2012-05-09 at 15:36 +0200, Ingo Molnar wrote: > * Peter Zijlstra 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. -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/