From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id DD68CC64990 for ; Thu, 25 Aug 2022 14:46:12 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232011AbiHYOqL (ORCPT ); Thu, 25 Aug 2022 10:46:11 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55448 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230523AbiHYOqJ (ORCPT ); Thu, 25 Aug 2022 10:46:09 -0400 X-Greylist: delayed 242 seconds by postgrey-1.37 at lindbergh.monkeyblade.net; Thu, 25 Aug 2022 07:46:07 PDT Received: from esa3.mentor.iphmx.com (esa3.mentor.iphmx.com [68.232.137.180]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CCB0CB14FA for ; Thu, 25 Aug 2022 07:46:07 -0700 (PDT) X-IronPort-AV: E=Sophos;i="5.93,263,1654588800"; d="scan'208";a="81807983" Received: from orw-gwy-02-in.mentorg.com ([192.94.38.167]) by esa3.mentor.iphmx.com with ESMTP; 25 Aug 2022 06:38:49 -0800 IronPort-SDR: x1Ixj9xEowfDaxB+rCmYv+GSCPnGqKWu+UVR1/d2bXu884TLkcyorKTAOJ3GIdG2sZcAKPnr8C HrDpsKuUuy/7A3YVdzDaX/MsrZX96NDhq5JOA2b7iEqcFgR8p++itQnfXWYEalx8sudUp7WR3Q um6mcl43b7D6ol4iQIF2NVNDO6kFKAVM4x0sDavVBXMjnIhpFoTzJo4nALK+MjLYUthu9lkmIN xkDupHA97VMp7y+qdLBmrdVJnKzGutKQCtTsZdyiix3T/aUpRWC6kZou1GuriOnoXxFN8q1rQH aYs= Date: Thu, 25 Aug 2022 14:38:40 +0000 From: Joseph Myers X-X-Sender: jsm28@digraph.polyomino.org.uk To: Linus Torvalds CC: Florian Weimer , Greg Kroah-Hartman , Alejandro Colomar , Alexei Starovoitov , Alex Colomar , Alexei Starovoitov , linux-man , Daniel Borkmann , Zack Weinberg , LKML , glibc , GCC , bpf , LTP List , Linux API , linux-arch , David Laight , Cyril Hrubis , David Howells , Arnd Bergmann , Rich Felker , Adhemerval Zanella , Michael Kerrisk Subject: Re: [PATCH v3] Many pages: Document fixed-width types with ISO C naming In-Reply-To: Message-ID: References: <20210423230609.13519-1-alx.manpages@gmail.com> <20220824185505.56382-1-alx.manpages@gmail.com> <87ilmgddui.fsf@oldenburg.str.redhat.com> User-Agent: Alpine 2.22 (DEB 394 2020-01-19) MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" X-Originating-IP: [137.202.0.90] X-ClientProxiedBy: svr-ies-mbx-11.mgc.mentorg.com (139.181.222.11) To svr-ies-mbx-10.mgc.mentorg.com (139.181.222.10) Precedence: bulk List-ID: X-Mailing-List: bpf@vger.kernel.org On Thu, 25 Aug 2022, Linus Torvalds wrote: > That's a small detail that yes, we've tried to avoid the absolute > humongous mess that the C standard library has with their horrendous > 'PRId*' mess, but honestly, it's just a tiny detail. I've not yet implemented it for glibc or for GCC format checking, but C23 adds 'wN' format length modifiers so you will be able to e.g. use "%w64d" with printf to print an int64_t and won't need those PRI macros any more. -- Joseph S. Myers joseph@codesourcery.com