Received: by 2002:a05:6358:45e:b0:b5:b6eb:e1f9 with SMTP id 30csp794263rwe; Thu, 25 Aug 2022 09:11:12 -0700 (PDT) X-Google-Smtp-Source: AA6agR6Dps7lF15zJr3lkI8S4hFxmrmkjSrGKYYn4D6os3UI8ECPROmc6PtMKceLGo0LWFuHwKKH X-Received: by 2002:a17:907:6089:b0:734:be0c:e0cd with SMTP id ht9-20020a170907608900b00734be0ce0cdmr3017158ejc.474.1661443871952; Thu, 25 Aug 2022 09:11:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1661443871; cv=none; d=google.com; s=arc-20160816; b=GJl+qxfGGK+kZGbCxVHecuSvNWpCxmOkd4gLVsBXVMl6MO+Rg6u667jcmHKIHLjKA8 +/I+SjfdBoZAFw2SnTIG+6R1XXTSezSQAxdo0m0Tmy+bssxc6wgMkZEdOTo3J7aXB5mi nStvsq9yFSxqjKbOa4ebMMsh0V6XmYsclSw7WO8h91UPRIzFO6iXhHww4DEG/OKA8p4f 1rmogVg5UBEm7Q1txPQo9GKmhRCEpt5BE3tKcvNnPiEBOIalGtPEp9Fx507Y1lcF2oLt HqUibTJePlGaXne8VuObmNfgPUc1GBhn2zfLIPs+72IDZr+E0ako8ydhW8AOddbWrOPZ XWZA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :mime-version:accept-language:in-reply-to:references:message-id:date :thread-index:thread-topic:subject:cc:to:from; bh=tGjjczZU8bXF8hu/LjKSsTPb2ocdbxtDrSh8aV40TPw=; b=CvZ8rigwNJVTcE5pk13IL/e5ReRS/dPGqfHGLuWW14RblxWS4lKb0xS8tzPxUZt+dJ 9n/tKi9VZVAC+7EmZ+thax5wReHEZ2qwrl1jkdv/dlRvw/dIqaiaVAVKqxGWMgs5qLGO ANswJYXwcWinZqSQlcXNEo+sINzUhp37AYZtJHpjewixT6FBHy4C6Pp9AFWACtrgMtef NJIZ8GmXK0e/etOH5oqLPa1JVRNjmQKlaiffj9XbRjLlDb+5eb72dF7jAFbxzgTLL9WP JKwbuHCCCoFweaPB/xU4vOrgZw0yVahQSsSDlg+UVnxrYNSaP7rXs9pS6MlAM6D2W7on UQcQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=aculab.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id d20-20020a056402145400b00445e2aa438esi5958784edx.405.2022.08.25.09.10.45; Thu, 25 Aug 2022 09:11:11 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=aculab.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235239AbiHYPEC convert rfc822-to-8bit (ORCPT + 99 others); Thu, 25 Aug 2022 11:04:02 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54390 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S242832AbiHYPDp (ORCPT ); Thu, 25 Aug 2022 11:03:45 -0400 Received: from eu-smtp-delivery-151.mimecast.com (eu-smtp-delivery-151.mimecast.com [185.58.85.151]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AD5F4B7760 for ; Thu, 25 Aug 2022 08:03:33 -0700 (PDT) Received: from AcuMS.aculab.com (156.67.243.121 [156.67.243.121]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id uk-mta-6-CLGAEFtmMmq-sFQCCbZ85g-1; Thu, 25 Aug 2022 16:03:04 +0100 X-MC-Unique: CLGAEFtmMmq-sFQCCbZ85g-1 Received: from AcuMS.Aculab.com (fd9f:af1c:a25b:0:994c:f5c2:35d6:9b65) by AcuMS.aculab.com (fd9f:af1c:a25b:0:994c:f5c2:35d6:9b65) with Microsoft SMTP Server (TLS) id 15.0.1497.38; Thu, 25 Aug 2022 16:01:31 +0100 Received: from AcuMS.Aculab.com ([fe80::994c:f5c2:35d6:9b65]) by AcuMS.aculab.com ([fe80::994c:f5c2:35d6:9b65%12]) with mapi id 15.00.1497.040; Thu, 25 Aug 2022 16:01:31 +0100 From: David Laight To: 'Joseph Myers' , 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 , "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 Thread-Topic: [PATCH v3] Many pages: Document fixed-width types with ISO C naming Thread-Index: AQHYuJCLMClw4u4WnUme2jwTdxYRD62/tSSA Date: Thu, 25 Aug 2022 15:01:31 +0000 Message-ID: <5e10ac07e63e41639b3113d12c264447@AcuMS.aculab.com> References: <20210423230609.13519-1-alx.manpages@gmail.com> <20220824185505.56382-1-alx.manpages@gmail.com> <87ilmgddui.fsf@oldenburg.str.redhat.com> In-Reply-To: Accept-Language: en-GB, en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-ms-exchange-transport-fromentityheader: Hosted x-originating-ip: [10.202.205.107] MIME-Version: 1.0 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: aculab.com Content-Language: en-US Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8BIT X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_LOW, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Joseph Myers > Sent: 25 August 2022 15:39 > > 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. Is that meant to work regardless of whether the type is int, long or long long provided the size is correct? Or does it require the compiler know which type inttypes.h uses for uint32_t and uint64_t? David - Registered Address Lakeside, Bramley Road, Mount Farm, Milton Keynes, MK1 1PT, UK Registration No: 1397386 (Wales)