Received: by 2002:ac0:aed5:0:0:0:0:0 with SMTP id t21csp3550812imb; Tue, 5 Mar 2019 12:20:44 -0800 (PST) X-Google-Smtp-Source: APXvYqy2Rs/md5QR4xYtHzkKJQJywd2wdK+9VQBIVb7nfsPwCuECP7mOxmG3LbuGyyQCGYYl5DZi X-Received: by 2002:a17:902:547:: with SMTP id 65mr3107104plf.242.1551817244480; Tue, 05 Mar 2019 12:20:44 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1551817244; cv=none; d=google.com; s=arc-20160816; b=IW/aowENDDFf8UrCKIKGEaDfUyDF0H7Fw7Yw2xcQXUy+r87E6XhpktkxIwmqU0XuRT bkjdEzKphSQmk1YCVxJKod6miB6+8iq52xQBeDB+zP1Drg3OKbbb4gXZ1mQPpQASZFua /trEJLzHJ4VH6h8fqplfrbq6A1DmvwoMt1V4S4X3JdHiTPva8f4Zj+1W9D38c7tWsrwb l8jsq77b8B8b3nonkV/01ARSLFRcUY6OUlGkgWFOHUuL3zQiPUhFscX6MSQN1y6n3jty qsTVoKCEQOncJSmF+t+4wPBFfXInxt8XrzqLZNdTRUyaGzeaf+iu7Lt2FDqwRqbDWXQX DPZA== 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:mime-version :user-agent:references:in-reply-to:date:cc:to:from:subject :message-id; bh=DO4N7HdNU5CSxNpIuYgYCa0J4fs9MeUFtksupEkGiuU=; b=N/0l07dxAuan+yLp09dkEa+fUnHN3Eow+p4FT1FVMR/mD0Qnms8nz1cCmtKv1h6gex OdskN/Tu+ScdZT7cAdO2JbU9PQ7Q5Akq4ckJIu57Vn8IW97iw8uQC06bTOMn+ARL5clo /+Q/nXKUzxzKVMhyJipxQXTzNXbZnotOFViDQrb4Ynwzlh4iIMUg0MwK192HrdnXfNwX 42VjQ9alfk5YI4Mcqx9DOdKpPxvKPZGHnele97Td579ARE7Ptq3xy6Rju7XeGNe/Rv1W DJsZ+98kG/pjukxmiQTzeJTDjlxGh8In4v5XAEIBllsQKShCLQWK5kxHv0bsVHG4KBPp qjsg== 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 h34si1511719pld.358.2019.03.05.12.20.29; Tue, 05 Mar 2019 12:20:44 -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 S1727456AbfCET7g (ORCPT + 99 others); Tue, 5 Mar 2019 14:59:36 -0500 Received: from smtprelay0251.hostedemail.com ([216.40.44.251]:47128 "EHLO smtprelay.hostedemail.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726695AbfCET7g (ORCPT ); Tue, 5 Mar 2019 14:59:36 -0500 Received: from filter.hostedemail.com (clb03-v110.bra.tucows.net [216.40.38.60]) by smtprelay05.hostedemail.com (Postfix) with ESMTP id 3234F1804DF7E; Tue, 5 Mar 2019 19:59:34 +0000 (UTC) X-Session-Marker: 6A6F6540706572636865732E636F6D X-Spam-Summary: 2,0,0,,d41d8cd98f00b204,joe@perches.com,:::::::::::::::::::,RULES_HIT:41:355:379:599:960:973:988:989:1042:1260:1277:1311:1313:1314:1345:1359:1431:1437:1515:1516:1518:1534:1541:1593:1594:1711:1730:1747:1777:1792:2393:2553:2559:2562:2828:3138:3139:3140:3141:3142:3352:3622:3865:3866:3867:3868:3871:3872:3873:4250:4321:5007:7903:8603:10004:10400:10848:11232:11658:11914:12043:12663:12740:12760:12895:13069:13161:13229:13311:13357:13439:14181:14659:14721:21063:21080:21094:21323:21326:21627:30034:30054:30090:30091,0,RBL:47.151.153.53:@perches.com:.lbl8.mailshell.net-62.14.0.100 64.201.201.201,CacheIP:none,Bayesian:0.5,0.5,0.5,Netcheck:none,DomainCache:0,MSF:not bulk,SPF:fn,MSBL:0,DNSBL:neutral,Custom_rules:0:0:0,LFtime:35,LUA_SUMMARY:none X-HE-Tag: light17_8d7e215a2710d X-Filterd-Recvd-Size: 2239 Received: from XPS-9350.home (unknown [47.151.153.53]) (Authenticated sender: joe@perches.com) by omf15.hostedemail.com (Postfix) with ESMTPA; Tue, 5 Mar 2019 19:59:32 +0000 (UTC) Message-ID: Subject: Re: [PATCH] docs: add extra integer types to printk-formats From: Joe Perches To: 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 Date: Tue, 05 Mar 2019 11:59:30 -0800 In-Reply-To: References: <20190303123647.22020-1-louis@kragniz.eu> <20190303201016.GO9224@smile.fi.intel.com> Content-Type: text/plain; charset="ISO-8859-1" User-Agent: Evolution 3.30.1-1build1 Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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" > 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