Received: by 2002:ac0:aed5:0:0:0:0:0 with SMTP id t21csp1950663imb; Sun, 3 Mar 2019 12:11:00 -0800 (PST) X-Google-Smtp-Source: APXvYqwnZX83cJnU6TBft5yRkA27IVUHl7p2sXMkubMgdmsjqiwCS84vqLlsvwnJlYjdh3HIwRSZ X-Received: by 2002:a17:902:6b48:: with SMTP id g8mr510300plt.21.1551643860583; Sun, 03 Mar 2019 12:11:00 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1551643860; cv=none; d=google.com; s=arc-20160816; b=n0JmQTXzJ2REqcG6ivxLohPOx6+gkrNxZJdDC1pbcLH/wum4uEHQI93bFmAb/K3N7y p9ITYDYNf+P/2j16hzmOqPSn42DVmsZDPkvP9v9Z5cQhkdoTFxvl5cjlji6i+b2P0wh2 U+JDIQJN6YmmIKcwWePVen15A6u7SUOKdce8cqYlVtw+dA6fW2FF++fmx291YI4ijmpR Lt91OPWpwWefqebKKQuB4z+IFHuzidOiYS7iH9c10znZWC9zJNPW3Y/sDd/SKUjppS2N jRX1kALL0F/IBtjHC6MysOoFJ8sDZWwFd2QdOsbtbgIyn2uYtYsoY6PRTfK0iwVRXUK8 iplw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:organization:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=7I3CVHLJ8g9SpPIO7ZVoZmGa11l1/Xg04GKywVLSo04=; b=z6wsF0VINQARcQFsTEBdeWWE6Mvi0wrVclvWg8RLjM0beFKTf+F57ngc0kNwDQXsK9 RHxQ/mCZ6flHVdBHLLXsTESd6xQ1gJrsMb4Z1HIHuVPiF9vqI/wYGC8sRM9YNUbFUOm1 kZchiobfbBlQMBGUDgcOsABKz7rM1cQ0A63G0dgZ+C+1kyOJ0NKdV7OYX8/KHO25S9Gc WCk7pdbh7MEBO9q+TvNs1/KV0lPULClyANzHQSToARx3iDZ7vtdjNgHtxCFpGXtA1d53 TEKxGept0tWZYKnPrcepzvnmw5loQFsiEPO6MLRcFLn43Ry4kF2jv1mcgrkeIbpQwTdF LILA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id s14si3579189plq.284.2019.03.03.12.10.45; Sun, 03 Mar 2019 12:11:00 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726626AbfCCUKV (ORCPT + 99 others); Sun, 3 Mar 2019 15:10:21 -0500 Received: from mga17.intel.com ([192.55.52.151]:15469 "EHLO mga17.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726525AbfCCUKV (ORCPT ); Sun, 3 Mar 2019 15:10:21 -0500 X-Amp-Result: UNKNOWN X-Amp-Original-Verdict: FILE UNKNOWN X-Amp-File-Uploaded: False Received: from fmsmga004.fm.intel.com ([10.253.24.48]) by fmsmga107.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 03 Mar 2019 12:10:20 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.58,437,1544515200"; d="scan'208";a="148923767" Received: from smile.fi.intel.com (HELO smile) ([10.237.72.86]) by fmsmga004.fm.intel.com with ESMTP; 03 Mar 2019 12:10:18 -0800 Received: from andy by smile with local (Exim 4.92-RC6) (envelope-from ) id 1h0XRA-0000wE-Kr; Sun, 03 Mar 2019 22:10:16 +0200 Date: Sun, 3 Mar 2019 22:10:16 +0200 From: Andy Shevchenko To: Louis Taylor Cc: corbet@lwn.net, pmladek@suse.com, geert+renesas@glider.be, linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, clang-built-linux@googlegroups.com, ndesaulniers@google.com, jflat@chromium.org Subject: Re: [PATCH] docs: add extra integer types to printk-formats Message-ID: <20190303201016.GO9224@smile.fi.intel.com> References: <20190303123647.22020-1-louis@kragniz.eu> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190303123647.22020-1-louis@kragniz.eu> Organization: Intel Finland Oy - BIC 0357606-4 - Westendinkatu 7, 02160 Espoo User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sun, Mar 03, 2019 at 12:36:47PM +0000, Louis Taylor wrote: > A few commonly used integer types were absent from this table, so add > them. I'm not against the patch, but isn't obvious by reading POSIX and / or man printf(3)? > Link: https://github.com/ClangBuiltLinux/linux/issues/378 Thanks for the link. It's interesting to see how compiler type mindset applies to fixing drivers and hardware related code... > Suggested-by: Nick Desaulniers > Signed-off-by: Louis Taylor > --- > Documentation/core-api/printk-formats.rst | 8 ++++++++ > 1 file changed, 8 insertions(+) > > diff --git a/Documentation/core-api/printk-formats.rst b/Documentation/core-api/printk-formats.rst > index a7fae4538946..6f08b1b6240a 100644 > --- a/Documentation/core-api/printk-formats.rst > +++ b/Documentation/core-api/printk-formats.rst > @@ -19,8 +19,16 @@ Integer types > unsigned long %lu or %lx > long long %lld or %llx > unsigned long long %llu or %llx > + short int %hd or %hx > + unsigned short int %hu or %hx > + char %hhd or %hhx > + unsigned char %hhu or %hhx > size_t %zu or %zx > ssize_t %zd or %zx > + s8 %hhd or %hhx > + u8 %hhu or %hhx > + s16 %hd or %hx > + u16 %hu or %hx > s32 %d or %x > u32 %u or %x > s64 %lld or %llx > -- > 2.20.1 > -- With Best Regards, Andy Shevchenko