Received: by 2002:ac0:aed5:0:0:0:0:0 with SMTP id t21csp2632067imb; Mon, 4 Mar 2019 09:57:25 -0800 (PST) X-Google-Smtp-Source: APXvYqwpci9aDeIndUyjIc5TcluFbom+9UUacka1HewlkCfjTmCul8RZOQol0pOKFgkTs8dekfGd X-Received: by 2002:a17:902:788d:: with SMTP id q13mr21888750pll.154.1551722245233; Mon, 04 Mar 2019 09:57:25 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1551722245; cv=none; d=google.com; s=arc-20160816; b=uV/teoRUKv+IyI0n5Kbvd6RBq7RluZqwYPSAHloQc+tEO90odLDqrwKT3kWGIBsMJq bXiOtfkZ6WxKzXVep7b+EEwf7uc42Tx8XMxW1r4YKoW1kaJ+Wf3mMaYUFnowtBDjtnDK SaUPy0ecpuOdgiKgtpEJPZmIOOON82sQhUjror0YvAfbzRk07OB00lZYF141kEDcqcp6 Xqu/PaW5uxQq55elK3vThD+5FLGV+7q68NoMIkTd+x2begs4R9KxR0SSyymUOn5IoERc HxQMLd2xW1r+wco+GZ8mtuaj2UYV5626sbHDNNzrW0trEmbG8+pYwcGM6cC/buozdfh7 kvQg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=Qxv/m+4LR2PyZHhZt6In/iHeQCdivz15h+k6BiAjjiU=; b=tSJGPcZeGDxoonFzARK0jlQb46yciDrbTsJv1dNiMPaH/BzvTcL91X50a94dukZTAG OcuwaPvd4wrssL/yTGSa9lo4sgtOpDLCbYj1ROehTJgBmWMTqEtWASrEwkOPz1J9j7rJ YvjdgPbN2456mu4D5Cm2h7MYznKU0vRjXoGwI1uDcSQRMwAmF4kkWoSGdAIlEPhGU1Cn jGaWonvJOF0WRN7wS3pofpN1YGlRhiCsqmr0iXQdrgTjs3AsvXJEQm9asS70yyLoSrbA XwoLMGddjoGfHmYXArhBK59hsGNGSbW6vTUnXc9QQxc4ie3Zh2KYPomDgSxt0UTVg1L/ 39zg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=ldTBQVzn; 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=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id u21si5762784pgk.295.2019.03.04.09.57.09; Mon, 04 Mar 2019 09:57:25 -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; dkim=pass header.i=@google.com header.s=20161025 header.b=ldTBQVzn; 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=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727488AbfCDRyz (ORCPT + 99 others); Mon, 4 Mar 2019 12:54:55 -0500 Received: from mail-pg1-f193.google.com ([209.85.215.193]:46613 "EHLO mail-pg1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727490AbfCDRyy (ORCPT ); Mon, 4 Mar 2019 12:54:54 -0500 Received: by mail-pg1-f193.google.com with SMTP id 196so3594159pgf.13 for ; Mon, 04 Mar 2019 09:54:54 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=Qxv/m+4LR2PyZHhZt6In/iHeQCdivz15h+k6BiAjjiU=; b=ldTBQVznmHHnr0I2OhfuPsOMqgo9cHJafUiIZkKZ19i93S+J2V5aRui3cDkUr+ZRFy 0CeIYgAgcmOq+iyRCClRLcr2vKdCZQLW+ZPTV7egwYU756ytKuJYy60PNKuXcICw9+tb kYeBn5b9YT4dFUVBo0BM0oQThCBYPC8BzLunmcyYjqRNskeJKzF+piNS2EU3nKsrmneQ XL0YYyEZelMZuIFugLalBTyJ7zkRD5K8Djiq1NtWvOAE5UOidum+wc4Gz2ITe9aWpAN7 WN9ATeAYx8pwQRFM0k9/y61qIDLciqPBhAgWfcUFyCeqpzxgspS4Ai1www5CdSjln79M 0/Kw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=Qxv/m+4LR2PyZHhZt6In/iHeQCdivz15h+k6BiAjjiU=; b=Ae/AcNqHi148IOtTpEqWV+lzzcFgzLucvWeT8rYG2cSXZBlZHuIBGmn5ZBmuITUGYO rttcjNcGjf2fedRr3bgmEPNMOu6ziu6a/O5dfhGILm1RbSHhJAXY0C5oCWRweSg34FFq 6QfJYLcNesaSg1bISuhxEr5uE0kzHkqlctp0tIXex0wIVWfaMiw4HE05F4K6ZlcdolE6 296YcUdmkp+FJ+pHGDdTv2UmqKdvsWS4DK647Ow24yG5KU135oJp3+mzsAGIafnXBPuI pB2cg4z2Dyhe9Zo4YJuF4OmP+YN5KkvtIIc/AAxI8rxeDuLFHhIcSNJHLdPMkSkeAIdy wISQ== X-Gm-Message-State: APjAAAVwYIHoxPbVAIwW0Icuogxj9WEklyINbtkzsJQDuzxHv0lHxLVV l+FvVwWATKJNogcNzhrVLgkOFboUVYn/R2pw1sQGFA== X-Received: by 2002:a17:902:221:: with SMTP id 30mr1081059plc.320.1551722093384; Mon, 04 Mar 2019 09:54:53 -0800 (PST) MIME-Version: 1.0 References: <20190303123647.22020-1-louis@kragniz.eu> <20190304154509.46azg4blwoieqs3c@pathway.suse.cz> In-Reply-To: <20190304154509.46azg4blwoieqs3c@pathway.suse.cz> From: Nick Desaulniers Date: Mon, 4 Mar 2019 09:54:42 -0800 Message-ID: Subject: Re: [PATCH] docs: add extra integer types to printk-formats To: Petr Mladek Cc: Louis Taylor , Jonathan Corbet , geert+renesas@glider.be, andriy.shevchenko@linux.intel.com, linux-doc@vger.kernel.org, LKML , clang-built-linux@googlegroups.com, Jon Flatley Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Mar 4, 2019 at 7:45 AM Petr Mladek wrote: > > 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 Sure that's fine. Thanks for keeping Louis as the author, and for the clean up. Reviewed-by: Nick Desaulniers -- Thanks, ~Nick Desaulniers