From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753376Ab3AWEOc (ORCPT ); Tue, 22 Jan 2013 23:14:32 -0500 Received: from perches-mx.perches.com ([206.117.179.246]:33312 "EHLO labridge.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1752392Ab3AWEOa (ORCPT ); Tue, 22 Jan 2013 23:14:30 -0500 Message-ID: <1358914468.2107.26.camel@joe-AO722> Subject: Re: [PATCH] lib: vsprintf: Add %pa format specifier for phys_addr_t types From: Joe Perches To: Geert Uytterhoeven Cc: Stepan Moskovchenko , Rob Landley , Andrew Morton , George Spelvin , Andy Shevchenko , Stephen Boyd , Andrei Emeltchenko , mingo@kernel.org, linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org Date: Tue, 22 Jan 2013 20:14:28 -0800 In-Reply-To: References: <1358833677-15611-1-git-send-email-stepanm@codeaurora.org> Content-Type: text/plain; charset="ISO-8859-1" X-Mailer: Evolution 3.6.2-0ubuntu0.1 Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, 2013-01-22 at 23:26 +0100, Geert Uytterhoeven wrote: > On Tue, Jan 22, 2013 at 6:47 AM, Stepan Moskovchenko > wrote: > > Add the %pa format specifier for printing a phys_addr_t > > type, since the physical address size on some platforms > > can vary based on build options, regardless of the native > > integer type. > > I'm not so sure it's a good idea to start using %p for integer types. It would also require that some automatic variables that could otherwise be used in registers be put on the stack.