Received: by 2002:ac0:aed5:0:0:0:0:0 with SMTP id t21csp3572799imb; Tue, 5 Mar 2019 13:01:39 -0800 (PST) X-Google-Smtp-Source: APXvYqyM59sGbnP4HlnSy8hOYWuqdlQQyTSotexiRDqHx4g1ar8NLeHKLhVaVx2EkK0sBNFoj9sE X-Received: by 2002:a17:902:bd06:: with SMTP id p6mr3280413pls.130.1551819699455; Tue, 05 Mar 2019 13:01:39 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1551819699; cv=none; d=google.com; s=arc-20160816; b=dSdObp/HH1p16wHba5Br/KQ15JrQ3CJHiAodycx/7IaJI3qxorUGDvDRRwoSgOi3Jh MDBd7Og5DGEYMl5iScRn1qa+l78Kho5CMBMi+N/1q4eSxidmlwFJwL3Wi1JZ2Q3ryAbp chLvPOzKUv0Psx1o2H2AAJP6bz92YLWhQaosqjArYQlyK59DN8Gs3sontrLRLMHparTv P2HJQpnWfODe88IuJSkqa26QpwMc4tz0AO0WmcizUk1qJUAiP6DNdg7tierZgkOB2ONB vdKOWU6jlpHy5FJkOhtSOYvlTT+9LVCeHEcs9IEX53ddONOMLeXxQgHIET2y6hL/D0Q1 6xOQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dkim-signature; bh=fd7HlNj4BVhChnF/JU6V3ls1u236HBTBzQQ0AiL7ksM=; b=TSVspwZJfiwndDa53QQKdd2abX2uuODhx31foDzWSqYPikB01aT6PN/WA4KrZJNasr VSvh63DQ91zN822ke1XdJgpOVab0h4pem5v4jJUEPmprAxIBTtOSVaW5KkG2zEbvtXXl aoghGA5o1lj9x4aatqTjl24lVxtP1UHFkcA4cxrJ98poN44Ka6x9dOyMLbVhnUY7SgZd TBurn75ho6Hd9/OilD0y7K3FF9l+azuYE/AdYMVPzj/SYVJCXPGI7EKMRHhfP8rIBecm SI0c9uj5p8z9PKF5JRn4T1KW6Vf0M5ua7wjZaN7TiLgNWp/psSBS0liRlNst1igXRPOX 6/CA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=oApk3sEd; 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 k71si8644111pge.507.2019.03.05.13.01.23; Tue, 05 Mar 2019 13:01:39 -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=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=oApk3sEd; 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 S1728317AbfCEVAo (ORCPT + 99 others); Tue, 5 Mar 2019 16:00:44 -0500 Received: from bombadil.infradead.org ([198.137.202.133]:60524 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726069AbfCEVAo (ORCPT ); Tue, 5 Mar 2019 16:00:44 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20170209; h=Content-Transfer-Encoding: Content-Type:In-Reply-To:MIME-Version:Date:Message-ID:From:References:Cc:To: Subject:Sender:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=fd7HlNj4BVhChnF/JU6V3ls1u236HBTBzQQ0AiL7ksM=; b=oApk3sEdw6pOQx4uuwXXezXtm haHQr0xy2HC+k8crumF4HNyoA8W/gHu64PlFaN/msolLByx+F1dpSHvkoVHmp5224Z8tKHf6RchZ1 mrqddJedxx7UyWlyFhrr5KjHuOzFyqXo43xVvVwvZJC/9OrjOk3d+z8zV96FF1R5J2wS/hXdy9OTS KX4AUUopiXbitJJU/ajTw4G/QRGR3xXDILLdo0t6tgE9yt6qmw4sVwuNl60oPhljvsjpgdQnXJVvH 0pCNuuxyr6L5/JVBGqV/OLUgGuBI1qYKIftih+pq4xYGJhLyLTEnLb/97g5jfRzi6m3PCZMowB34Q jWf/4bZTw==; Received: from static-50-53-52-16.bvtn.or.frontiernet.net ([50.53.52.16] helo=midway.dunlab) by bombadil.infradead.org with esmtpsa (Exim 4.90_1 #2 (Red Hat Linux)) id 1h1HB4-0002IR-Bk; Tue, 05 Mar 2019 21:00:42 +0000 Subject: Re: [PATCH] docs: add extra integer types to printk-formats To: Joe Perches , Nick Desaulniers , 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 References: <20190303123647.22020-1-louis@kragniz.eu> <20190303201016.GO9224@smile.fi.intel.com> From: Randy Dunlap Message-ID: Date: Tue, 5 Mar 2019 13:00:41 -0800 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.5.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 3/5/19 11:59 AM, Joe Perches wrote: > On Mon, 2019-03-04 at 09:59 -0800, Nick Desaulniers wrote: >> 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. > > software defects are always present. > > Many of the -Wformat warnings are bogus too. > > There's nothing wrong with using %x for a unsigned int > of less than long size. (u8/u16) > >> At least with this patch they're "above the >> fold." > > I'd personally go with > "posix plus kernel specific deletions and extensions" Yeah, I don't think that all of the "standard" types/formats need to be in there. Just the differences. >> 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. > > %i is also supported and used a few hundred times > > -- ~Randy