Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755032AbbGPJ7L (ORCPT ); Thu, 16 Jul 2015 05:59:11 -0400 Received: from ozlabs.org ([103.22.144.67]:39622 "EHLO ozlabs.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754332AbbGPJ7K (ORCPT ); Thu, 16 Jul 2015 05:59:10 -0400 In-Reply-To: <1434022072-31754-1-git-send-email-linux@rasmusvillemoes.dk> To: Rasmus Villemoes , Ian Munsie , Michael Neuling From: Michael Ellerman Cc: Joe Perches , Rasmus Villemoes , linuxppc-dev@lists.ozlabs.org, linux-kernel@vger.kernel.org Subject: Re: [v3,1/2] cxl: Add explicit precision specifiers Message-Id: <20150716095909.3C4701402B5@ozlabs.org> Date: Thu, 16 Jul 2015 19:59:09 +1000 (AEST) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 992 Lines: 22 On Thu, 2015-11-06 at 11:27:51 UTC, Rasmus Villemoes wrote: > C99 says that a precision given as simply '.' with no following digits > or * should be interpreted as 0. The kernel's printf implementation, > however, treats this case as if the precision was omitted. C99 also > says that if both the precision and value are 0, no digits should be > printed. Even if the kernel followed C99 to the letter, I don't think > that would be particularly useful in these cases. For consistency with > most other format strings in the file, use an explicit precision of 16 > and add a 0x prefix. > > Signed-off-by: Rasmus Villemoes Applied to powerpc next, thanks. https://git.kernel.org/powerpc/c/80c394fab89649585089 cheers -- 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/