Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp430408pxk; Fri, 11 Sep 2020 10:39:21 -0700 (PDT) X-Google-Smtp-Source: ABdhPJznUAXQV8z4L0rqLKNIvDXmMWg+bXo/hETnywp7uwi1UZokkZ3Bj1a2qky6AgB5ISLP9CP1 X-Received: by 2002:a17:906:ae50:: with SMTP id lf16mr2988293ejb.343.1599845960794; Fri, 11 Sep 2020 10:39:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1599845960; cv=none; d=google.com; s=arc-20160816; b=fAbHB9aEmC7FuzWTUY6aJStNh8rWIkiobegp6q+vNe9RsVr1K4htmEXBI5Xsi/kC6H hTX8qJZgD6Q/b1n5Z2r6o2bjuKwIdTaygvDFSF/iYhZC7I3jJaN5LOX9gDpkGy72rQmK YG4wYF3E6rHLQh/ZjkB/b736Mv3blgu34Vn9spm7eqg6lVubziaZZL/uKdI2wcUsGbg7 90DlJu2P1lAy1l+HqBCzZRCAeEH+nx25t/zu4ifBQeYnBMsJnyg9aU5TyqzDdYABFGUX iWf/YWQVdrRSXug+VKMq2lS0kVAFtDbOxN0qMNjiNl6TcHEpNz4NKAjqaBqyNU4XGZsU ZXqw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:content-transfer-encoding :content-language:accept-language:in-reply-to:references:message-id :date:thread-index:thread-topic:subject:cc:to:from:dkim-signature; bh=awLKxFSDiFvN2tMOoPxn792eb95yg0Dc8CoIt1WJxTg=; b=helz+m3KFH9i5B4Rj+frGB7LVNQtIj3rKEdXm2eNaPo9uhdx5iMkyZJSKhv/BsigA8 hGLWiSoSQ9NDGVr4b1CwsXSGmktNCh5AXsXULiZuIlBbUnZfnTNV8Ch01uhaokiGPJud 1eGts7x9wi17WUgIIBl1W+V/7tCHvbFXeUo+t1WgTAEDSQrxpbrgwW3PjK8JPVFz2IIn r5/vN1wy7QmneLpViC+tksp942BdiZkcoxJJGAZ/EcFfd6n26fwSynqOpCuq9Oi8xh6x azPHG8N8F4lhnNGv5GvFGj7j/FZL9fRFkiHBzZxAGXXWu+4hu1Ss1a5KR75/shLnu3EP S49Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@bfs.de header.s=dkim201901 header.b=tLy1Pnfk; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id i22si1726232edy.183.2020.09.11.10.38.58; Fri, 11 Sep 2020 10:39:20 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@bfs.de header.s=dkim201901 header.b=tLy1Pnfk; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726179AbgIKRiU (ORCPT + 99 others); Fri, 11 Sep 2020 13:38:20 -0400 Received: from mx01-sz.bfs.de ([194.94.69.67]:62428 "EHLO mx01-sz.bfs.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725858AbgIKMpy (ORCPT ); Fri, 11 Sep 2020 08:45:54 -0400 Received: from SRVEX01-SZ.bfs.intern (exchange-sz.bfs.de [10.129.90.31]) by mx01-sz.bfs.de (Postfix) with ESMTPS id BBFA020677; Fri, 11 Sep 2020 14:44:42 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bfs.de; s=dkim201901; t=1599828282; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=awLKxFSDiFvN2tMOoPxn792eb95yg0Dc8CoIt1WJxTg=; b=tLy1PnfkTpM45lF7qBi9+qJGalTIbt6vXuUGxivpYuTBFtkRmUKQQk7ydPHvybBP6QsZGS yUiQCbaLepcl72E9nVMrSYS3zlxYJajf0fLHsi/e4LuHyyl1vERTw6lKN3pUsXnZzcX4lB Rbe0UR+xzIK2X4egiKjNwsWDCWLbkG04qcVjnobuuego6e7Tcp7///NMxChVlbuV2znNVw cL2B2Ja4Z35hBK2J29fxrRTANgslfn+u8F7XHT9GYBOSSWIxJGW6ipt7L+5BUBeYiuCKbb i5UmD+0Vvx7c3AGALInpRCRE0/8QmMrdA+smts4ptqhy1Dwula1BDV502H81iQ== Received: from SRVEX01-SZ.bfs.intern (10.129.90.31) by SRVEX01-SZ.bfs.intern (10.129.90.31) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2044.4; Fri, 11 Sep 2020 14:44:42 +0200 Received: from SRVEX01-SZ.bfs.intern ([fe80::7d2d:f9cb:2761:d24a]) by SRVEX01-SZ.bfs.intern ([fe80::7d2d:f9cb:2761:d24a%6]) with mapi id 15.01.2044.004; Fri, 11 Sep 2020 14:44:42 +0200 From: Walter Harms To: Alejandro Colomar , "mtk.manpages@gmail.com" CC: "linux-man@vger.kernel.org" , "linux-kernel@vger.kernel.org" Subject: AW: [PATCH 04/24] eventfd.2: Use 'PRIxN' macros when printing C99 fixed-width integer types Thread-Topic: [PATCH 04/24] eventfd.2: Use 'PRIxN' macros when printing C99 fixed-width integer types Thread-Index: AQHWh7d4oPYjeCDYAkKQ2imUrEhZI6ljYiE/ Date: Fri, 11 Sep 2020 12:44:42 +0000 Message-ID: References: <20200910211344.3562-1-colomar.6.4.3@gmail.com>,<20200910211344.3562-5-colomar.6.4.3@gmail.com> In-Reply-To: <20200910211344.3562-5-colomar.6.4.3@gmail.com> Accept-Language: de-DE, en-US Content-Language: de-DE X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [10.137.16.40] x-tm-as-product-ver: SMEX-14.0.0.3031-8.6.1012-25658.007 x-tm-as-result: No-10--1.467500-5.000000 x-tmase-matchedrid: dhGsVyorqVbRubRCcrbc5pzEHTUOuMX33dCmvEa6IiGoLZarzrrPmXtc SBXe4RfNBHyV47DgzT52mrAqMWjcqxzhSiKnHyLo9u1rQ4BgXPLgt7TT//Roamww+4tkH8hHgm8 y9s/8xLBZVPxvRQjmVHotqe6GyX/IB2Y8Y5F1xZxtJYfOb0q5O/f6ZSoNZQrIB2QWi8BF5SiKW8 BvXyLiE06K+6IM3Zckb2oLhvXzhe1UzR/yBHQjZp4CIKY/Hg3AnCGS1WQEGtDfwtq4jZ/G3iq2r l3dzGQ1CNyq9HL1qQiwet1ijVZWJbKiBFvCE54jmCYnpBV0qyvN7500j4xkq16wCcILuZ0m81sr f0TfKm7OUB26kNabEhjyk2KDtWSDxwpwazsiHrxwKbJm8PBDLa3lqFG8MgYtra3VVcd6EV7L9Ap LJriTv0MMprcbiest x-tm-as-user-approved-sender: No x-tm-as-user-blocked-sender: No x-tmase-result: 10--1.467500-5.000000 x-tmase-version: SMEX-14.0.0.3031-8.6.1012-25658.007 x-tm-snts-smtp: D7B04CFD480A743FD1EB51144D784E81CBF3F4F6871F0C067CC12150EDE317D12000:9 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Spam-Status: No, score=-0.32 Authentication-Results: mx01-sz.bfs.de; none X-Spamd-Result: default: False [-0.32 / 7.00]; ARC_NA(0.00)[]; TO_DN_EQ_ADDR_SOME(0.00)[]; HAS_XOIP(0.00)[]; FROM_HAS_DN(0.00)[]; RCPT_COUNT_THREE(0.00)[4]; FREEMAIL_ENVRCPT(0.00)[gmail.com]; TO_MATCH_ENVRCPT_ALL(0.00)[]; TAGGED_RCPT(0.00)[]; MIME_GOOD(-0.10)[text/plain]; TO_DN_SOME(0.00)[]; DKIM_SIGNED(0.00)[]; NEURAL_HAM(-0.00)[-0.850]; FREEMAIL_TO(0.00)[gmail.com]; RCVD_NO_TLS_LAST(0.10)[]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; RCVD_COUNT_TWO(0.00)[2]; MID_RHS_MATCH_FROM(0.00)[]; BAYES_HAM(-0.32)[75.53%] Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org I do not think that this is a good idea. An example should be clear and easy to understand. (e.g. with reduced error handling) These C99 macros are over the top for me. jm2c wh ________________________________________ Von: linux-man-owner@vger.kernel.org [linux-man-owner@vger.kernel.org] im A= uftrag von Alejandro Colomar [colomar.6.4.3@gmail.com] Gesendet: Donnerstag, 10. September 2020 23:13 An: mtk.manpages@gmail.com Cc: linux-man@vger.kernel.org; linux-kernel@vger.kernel.org; Alejandro Colo= mar Betreff: [PATCH 04/24] eventfd.2: Use 'PRIxN' macros when printing C99 fixe= d-width integer types Signed-off-by: Alejandro Colomar --- man2/eventfd.2 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/man2/eventfd.2 b/man2/eventfd.2 index 929234ab7..71e9d85b4 100644 --- a/man2/eventfd.2 +++ b/man2/eventfd.2 @@ -386,6 +386,7 @@ Parent read 28 (0x1c) from efd .EX #include #include +#include /* Definition of PRIu64 & PRIx64 */ #include #include #include /* Definition of uint64_t */ @@ -430,8 +431,7 @@ main(int argc, char *argv[]) s =3D read(efd, &u, sizeof(uint64_t)); if (s !=3D sizeof(uint64_t)) handle_error("read"); - printf("Parent read %llu (0x%llx) from efd\en", - (unsigned long long) u, (unsigned long long) u); + printf("Parent read %"PRIu64" (0x%"PRIx64") from efd\en", u, u); exit(EXIT_SUCCESS); case \-1: -- 2.28.0