From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from eu-smtp-delivery-151.mimecast.com (eu-smtp-delivery-151.mimecast.com [185.58.85.151]) by sourceware.org (Postfix) with ESMTPS id 2C52D385AC11 for ; Thu, 25 Aug 2022 15:03:24 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 2C52D385AC11 Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=ACULAB.COM Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=aculab.com 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: quoted-printable X-Spam-Status: No, score=-3.6 required=5.0 tests=BAYES_00,KAM_DMARC_STATUS,RCVD_IN_DNSWL_LOW,SPF_HELO_NONE,SPF_PASS,TXREP,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 server2.sourceware.org List-Id: From: Joseph Myers > Sent: 25 August 2022 15:39 >=20 > On Thu, 25 Aug 2022, Linus Torvalds wrote: >=20 > > 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. >=20 > 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? =09David - Registered Address Lakeside, Bramley Road, Mount Farm, Milton Keynes, MK1 1= PT, UK Registration No: 1397386 (Wales)