Received: by 2002:ac0:aed5:0:0:0:0:0 with SMTP id t21csp2592615imb; Mon, 4 Mar 2019 08:58:17 -0800 (PST) X-Google-Smtp-Source: APXvYqzCNxzVCn+FphnmdruI0+hqkA439mnTiJ3Q+T/T0Jwa/33OFv7SjqZMkAk6Cica2LyiC6Cz X-Received: by 2002:a63:814a:: with SMTP id t71mr19615378pgd.257.1551718697808; Mon, 04 Mar 2019 08:58:17 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1551718697; cv=none; d=google.com; s=arc-20160816; b=aGJJh9ufaLZQV8wF2kPAYoJv3o2n7s+w7qX3SW91TGeMl7GiJqkIeIdCH4lmzRNilW kOazrth+HoCO4Gze3p9SxZhI8IjbyidrEkzvXRqYZdDNpLrSd236CdOy6Lu3DXMEHRba 4kbucZcV8i8Cach8EDGXIXLP/19r5W9owAMehmrpwE55Ei9Nt5VnFeyh7EVX9FQmBmcs 0+ISqxucqMQ69x3jvKezmwCbGR7qse8Jr19oHN4wzqsmU1iH0EVKTg1cs4MHXVmpSzSK kcQstW19xLllmb8rAVfBQvk2PjCZPIJe2WOa1dryRxSy24YobnUzCEsUsUISrkrQ2XlF LQyg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=nT6UeF0/yew2KsmeBAaKjXuvlFqjBXOXBJjYIkr8mAE=; b=Vhn2KK6to/NdSOipUAHfrM9Hx2vruiWKi/0PS7cenAX8giV+ESfKEFMWcUO8SHS9xM 0zk7+F5+Twki37BfWTjSBqFsg5wrj18BvGOX1apg7Hp67h4sV9WjpZ6t5lx7l3lUDkuT gOpIMROvR3L4GXQ0q9SXyoEjDk/JnQhXfeJYE62DThr0vkYy1XxDzJq9j1Q0o88zWnAw VSg0TeeBh7qTgr2j5FrraCmVCnEQo5dGCwxC8zAhiBmO3Pc0XXVGMps4d7SrcMnGS5YC GRD1BiMK+usKaxOJBNvF3C09Z77x28BXlC5yBSN2SOMLlGg3PGZeCXLyEccjnfWupMpF 0B8w== 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id j191si5420882pge.254.2019.03.04.08.58.02; Mon, 04 Mar 2019 08:58:17 -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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727205AbfCDPpM (ORCPT + 99 others); Mon, 4 Mar 2019 10:45:12 -0500 Received: from mx2.suse.de ([195.135.220.15]:53344 "EHLO mx1.suse.de" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726162AbfCDPpL (ORCPT ); Mon, 4 Mar 2019 10:45:11 -0500 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.220.254]) by mx1.suse.de (Postfix) with ESMTP id 34E22AC3F; Mon, 4 Mar 2019 15:45:10 +0000 (UTC) Date: Mon, 4 Mar 2019 16:45:09 +0100 From: Petr Mladek To: Louis Taylor Cc: corbet@lwn.net, geert+renesas@glider.be, andriy.shevchenko@linux.intel.com, 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: <20190304154509.46azg4blwoieqs3c@pathway.suse.cz> 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> User-Agent: NeoMutt/20170421 (1.8.2) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sun 2019-03-03 12:36:47, Louis Taylor wrote: > A few commonly used integer types were absent from this table, so add > them. > > Link: https://github.com/ClangBuiltLinux/linux/issues/378 > 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 These should get moved to the beginning of the table to have all variants sorted by size. > 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 Let's get it in when people are doing the clean up. I have fixed the sorting and committed into printk.git, branch for-5.1, see https://git.kernel.org/pub/scm/linux/kernel/git/pmladek/printk.git/commit/?h=for-5.1&id=943ca6ad81e5b37bd5d22cbab5ad06dc97fc001c Best Regards, Petr