From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756632AbcARUid (ORCPT ); Mon, 18 Jan 2016 15:38:33 -0500 Received: from mail-wm0-f45.google.com ([74.125.82.45]:38512 "EHLO mail-wm0-f45.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756263AbcARUib (ORCPT ); Mon, 18 Jan 2016 15:38:31 -0500 From: Rasmus Villemoes To: Andy Shevchenko Cc: Robert Elliott , Matt Fleming , Andrew Morton , Thomas Gleixner , Ingo Molnar , "H. Peter Anvin" , linux-kernel@vger.kernel.org, Brian Norris , Hariprasad S Subject: Re: [PATCH v2 02/11] lib/vsprintf: make default_dec_spec global Organization: D03 References: <1452810221-116505-1-git-send-email-andriy.shevchenko@linux.intel.com> <1452810221-116505-3-git-send-email-andriy.shevchenko@linux.intel.com> X-Hashcash: 1:20:160118:linux-kernel@vger.kernel.org::GagYD/p3vGiDds8D:0000000000000000000000000000000000PuJ X-Hashcash: 1:20:160118:computersforpeace@gmail.com::zRBJF4QwJ9TNzcGu:00000000000000000000000000000000001dag X-Hashcash: 1:20:160118:hpa@zytor.com::+UNLOvFkyd7ahbEs:00001xuE X-Hashcash: 1:20:160118:tglx@linutronix.de::npj+556y50XRbrMa:00000000000000000000000000000000000000000002Dg6 X-Hashcash: 1:20:160118:hariprasad@chelsio.com::7fhKXtPlp0QlFVSV:0000000000000000000000000000000000000002gB3 X-Hashcash: 1:20:160118:akpm@linux-foundation.org::kwg8a4mZ3eJxGoSI:0000000000000000000000000000000000004lWA X-Hashcash: 1:20:160118:andriy.shevchenko@linux.intel.com::bLuWpE/Ue7JuiDqS:00000000000000000000000000006Er/ X-Hashcash: 1:20:160118:matt@codeblueprint.co.uk::k2DvxgvZjBP7G9+d:00000000000000000000000000000000000006VeL X-Hashcash: 1:20:160118:mingo@redhat.com::Xhyzq0NK4snYv4cR:07BL4 X-Hashcash: 1:20:160118:elliott@hpe.com::IwEBievqf3cmIrBL:008Vpi Date: Mon, 18 Jan 2016 21:38:28 +0100 In-Reply-To: <1452810221-116505-3-git-send-email-andriy.shevchenko@linux.intel.com> (Andy Shevchenko's message of "Fri, 15 Jan 2016 00:23:32 +0200") Message-ID: <87r3heei7v.fsf@rasmusvillemoes.dk> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Jan 14 2016, Andy Shevchenko wrote: > There are places where default specification to print decimal numbers is used. > Make it global and convert existing users. > > Signed-off-by: Andy Shevchenko > --- > lib/test_printf.c | 5 +++-- > lib/vsprintf.c | 21 +++++++++------------ > 2 files changed, 12 insertions(+), 14 deletions(-) > > diff --git a/lib/test_printf.c b/lib/test_printf.c > index 4f6ae60..fd985f6 100644 > --- a/lib/test_printf.c > +++ b/lib/test_printf.c > @@ -376,9 +376,10 @@ large_bitmap(void) > if (!bits) > return; > > - bitmap_set(bits, 1, 20); > + bitmap_set(bits, 0, 1); > + bitmap_set(bits, 2, 20); > bitmap_set(bits, 60000, 15); > - test("1-20,60000-60014", "%*pbl", nbits, bits); > + test("0,2-21,60000-60014", "%*pbl", nbits, bits); > kfree(bits); > } What does this have to do with what the commit message claims this patch is about? (I don't mind the rest of the patch, just curious why this is included.) Rasmus