Received: by 2002:ac0:aed5:0:0:0:0:0 with SMTP id t21csp2634316imb; Mon, 4 Mar 2019 10:00:55 -0800 (PST) X-Google-Smtp-Source: APXvYqyoYYzZ/Dm5+9otMZOKiWWNc4NL3HG6qk+Xrole/PsaJy+q2bHam7g8ReyUkICS1P5xnbVG X-Received: by 2002:a17:902:8bc6:: with SMTP id r6mr21995563plo.235.1551722455792; Mon, 04 Mar 2019 10:00:55 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1551722455; cv=none; d=google.com; s=arc-20160816; b=gpO5JsX39TpvSBXXzn71YYu+XW/CPIO3bMy9qhjD35vfiMaOwxiaJFfcdkYhwP4Wkz YjKhpS388c/WTE1Qi7YKKVG74nJlCULj5FD9MSTgdG6rBkOP/mSCwG3RM9S8+eqw449M D1wdXNmoB56wu5apbHj/YbuBeXcp51p16oiE4zJeK8Ng6xJURFghDkSVLkhQyBMnY1Ua gMQeXSC92sNCFWqd3OJotsoH9gly+74OJnAnE5vcUQVjllxR6HusIqjdyLtAYRIcNUNR QORNoH0LqVBB3jJ5yCsvxhMAMVupK8yzzgCw9dTSOQJqeQODF060U5JC0n9PLpZ+ci6A XNJg== 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=I6myyJzks72PYbOylGqxUbMDE4mq9yu5K//MBRwXTF4=; b=CI+6ji+tUqFce7ZxZvujRJMdkRj/sO0wYD007LocZVqM7ltCqT1REFqnYtWgdxBJay 8gA9KYihaAOrQwHuYhjOCdUlIxm8qra7dUQaop5aP6cfwbb2pFQ9+7Y/AJRPd/LhaVKS WMJpFev8pVUFcB2YhgCXxdHXRXjbPZesGc/Y9PTC2GbLBOmp+xGpv2FioecaJq4IPgd2 ZZd+NGyyU/I54f29+cs2Fz4Y3Gq301zIGo/mMsWgNe+nqLkP3or48rW+jpMvOR2lFILE TZ8U/1K8G5XNVE20tnwS/RbqCFLR39Lsjt12NcSrTJc9K0AE05iMUDp+jBWxSDvNWhaV aB7A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=k+bqH+BA; 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 h191si5648332pgc.302.2019.03.04.10.00.39; Mon, 04 Mar 2019 10:00:55 -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=k+bqH+BA; 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 S1727532AbfCDSAB (ORCPT + 99 others); Mon, 4 Mar 2019 13:00:01 -0500 Received: from mail-pf1-f193.google.com ([209.85.210.193]:43307 "EHLO mail-pf1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727436AbfCDSAB (ORCPT ); Mon, 4 Mar 2019 13:00:01 -0500 Received: by mail-pf1-f193.google.com with SMTP id q17so3549769pfh.10 for ; Mon, 04 Mar 2019 10:00:00 -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=I6myyJzks72PYbOylGqxUbMDE4mq9yu5K//MBRwXTF4=; b=k+bqH+BA4Dko5eAXXuVt6aY7bQVuU9zgfGjUj8Qm8e7c3fPLkODWTumhgG/qetTiP6 2JcanN9Nj8PidpXH0KsUicT4Ur8YVy2Uiv+JySbXq8LJkUnl+TQIgZI6v5wAYngFseKM NirhSoWu+motriIKQT8d65dXedNguxrA9bLFH92siNzczTMpaE7E72XUovY0QcM8ixW1 blnAJMKN5xXj8Ce91uTvyAWvZI/5BPBvgyAAv5NOmmmqSHmkKW5hTSNnNEbd1Qw8Aq/k HfeT+5xxstoxuE0V4EpAfIlqiKWzUfl4CHNM2dcrEU76EOBDdYg6E+aWsvadGmxSJ97k FcIw== 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=I6myyJzks72PYbOylGqxUbMDE4mq9yu5K//MBRwXTF4=; b=oxYzHP5Egtn35Lu1Gv2KoQY0t942q0blOhWyBSLOkx+FSKlbqlh63aStOImzJ4Jewu 5/OdFTP8ZovSNJBS7bvOemF7+bw3S8pUVYIHPhOO85JZ0L3FQMfGCEFZlkJyqWdiLHMz kKmwsrJaxgoIc5VsiD8CMtLDYIb7h7+TE5s+VHeeK/F7IQpwdL1tWXPWXvJ5l2Wuw2zc JU2EB6Urjh5LyKjuSCarEjSj9Irg7T2E3A+y1ShDAwOTv88xdZNXp3oP3NMnlrJiUZoI Maw5161oi0JFAaub0Wlq7wATUUYkSqxDBiXmtauTqrjenTjP+Be4DiZ5tlcCSHoVLeat gjWg== X-Gm-Message-State: APjAAAV2rUZkPFDowGnZn0+2obPN2Vfi5zbRWjkBXz2qHqvQPB35uUgu 6ajbLc+gtUGmwyKUmbxXaZlesDqeX/y7DVQzr5k4sA== X-Received: by 2002:a63:40c1:: with SMTP id n184mr18669506pga.225.1551722400102; Mon, 04 Mar 2019 10:00:00 -0800 (PST) MIME-Version: 1.0 References: <20190303123647.22020-1-louis@kragniz.eu> <20190303201016.GO9224@smile.fi.intel.com> In-Reply-To: <20190303201016.GO9224@smile.fi.intel.com> From: Nick Desaulniers Date: Mon, 4 Mar 2019 09:59:48 -0800 Message-ID: Subject: Re: [PATCH] docs: add extra integer types to printk-formats To: Andy Shevchenko Cc: Louis Taylor , Jonathan Corbet , pmladek@suse.com, geert+renesas@glider.be, 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 Sun, Mar 3, 2019 at 12:10 PM Andy Shevchenko wrote: > > 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)? You'd think; but based on the sheer number of -Wformat warnings (~450), I'm not so sure. At least with this patch they're "above the fold." The kernel also has its own format flag extensions, and does not implement %n (for good reason), so it's better to be explicit than imply posix or glibc compat. -- Thanks, ~Nick Desaulniers