Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp96828pxk; Fri, 11 Sep 2020 01:10:03 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwOmOg1Haadv5wUYhxatAubH8N19FsR80KOAykV73vibHFNQsMNTLEezdD6h/sH+ctj6CA+ X-Received: by 2002:a17:906:63c9:: with SMTP id u9mr903747ejk.82.1599811803662; Fri, 11 Sep 2020 01:10:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1599811803; cv=none; d=google.com; s=arc-20160816; b=rzeyRKVeIvmUVMrupQOOH1X0pm9It7rrHNdcLxpdnjeq02ouHpL2oIcCy2SoR9Z03l DyiMH4ysLKCMB5xzRAOg9lFAP29yNLFdJWjMNK4/S3j2wsPbGYQzU0GdvaMB4dnzhW2J gemJg7VkHUkWJuSftG4+U+d92OX/t6HlDwfodq3nduCCkcoVg0AMI9bfqjEC622M7j2X wEHUAQkjjucuUdnHIDGqCsAmZRlCri2J9QDtIZBsYO2KrkWtM4l18ltutBCfBkcE5GkF apuccKHi7uEBt/IqlRdBrCgw7zLAEBOn5gqj/NDgX0W8enO6ajChX5+f1gvH38qded1o nJbw== 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 :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:to:subject:cc:dkim-signature; bh=VtvXdzhwq35VCT8zvbSiSqzHBqM/LlABt0m9iDV701o=; b=yhelf5Nwe+fruIrwoPUhPz8+vCj12poXogl4fZOOj8koFRmhENDNZWv5JGCIY45TJp Fs8+7syH/3SsfP3C0VQKbJ5KhZ7hr92wvLotLX73WJ/K3pEv5Ro9Witd1A4O1joS3UNb naX6QdaJQHa/FTfHdzrNX46NEYyhc/unQq+87I1ULag5kKxU4lbGuRZ0B++CuhuK2qbT JwQxpevDprZyQ3Ud0BjAvPI7arVUW08/kOOtD5+8XRiZKMrFY9AGbO7JG90Zjj9vqGSj Tu2KoeXhWaz2ueVg8BlExFMh37BFKu5EnKctXpqRBd+N+ElCWIZKpvqEzywMwykEKnvG sYHA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=kngqLgXY; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id u6si943980ejf.115.2020.09.11.01.09.40; Fri, 11 Sep 2020 01:10:03 -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=@gmail.com header.s=20161025 header.b=kngqLgXY; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1725903AbgIKIGb (ORCPT + 99 others); Fri, 11 Sep 2020 04:06:31 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50312 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725899AbgIKIGY (ORCPT ); Fri, 11 Sep 2020 04:06:24 -0400 Received: from mail-wm1-x342.google.com (mail-wm1-x342.google.com [IPv6:2a00:1450:4864:20::342]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A1074C061573; Fri, 11 Sep 2020 01:06:22 -0700 (PDT) Received: by mail-wm1-x342.google.com with SMTP id l9so3867721wme.3; Fri, 11 Sep 2020 01:06:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=cc:subject:to:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=VtvXdzhwq35VCT8zvbSiSqzHBqM/LlABt0m9iDV701o=; b=kngqLgXYUofPGlcgsPgqZ9c6orhALZRAOFO5Zbrt7I8DcTZAGEXWxsJdDGwY32wXmX ADEQrdpHRovG7Far8duAFMUwuxn2xVISHOqfRToKeaLXjrT8XjGj5GyZSNYcPFLmjYRv ogUlgzB6L/nLKCt1MNjwt1KcN9L1VoBohwAKaNyHttzWzYMm6MZF/07k4oeT1AhG4qF3 6RbmB/1GKon9RJX8hHvupr3aoRcS5+LsdYWuEC5ltvBXeuD4KepFoeOHAfNpkdySt2Qq eRsGXcM3LLoIiWeKDXbRleM4aAUWGRwjunU2zBmgiFp/ex435nkdkxxbu0tXtw3bJT5a 5TZw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:cc:subject:to:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=VtvXdzhwq35VCT8zvbSiSqzHBqM/LlABt0m9iDV701o=; b=bk7OEZXXBa8HhTD+c66WrU+8kikN0EaqJQnU3lPj2jQU6cUYPyWSmpFIH3WgcxUMVY oiWu7VE6cCsPjLuE58Ppgu8UHTOHydJd5aoLE6u84wP+9jxyyUcUY10b7uNPO5VUhRKA UCy5fceQAJxbidXsOqj7whmb42/pk5MciLxehX0KLK5udmCqkbt6NzIX6nDF2YPvWje2 UbjncByogFTaEuKnqhAWMpRK0eVukwvuW3BVyjFFEdHdN+AX4NrdVzUYHeH0UKw0Rc05 HHdXYTjQ0ey53We3Jalha7xewraVTONiXpjmEuFw32SLEJtkE1bnt2pBuDBjzw9SJGCn R7ow== X-Gm-Message-State: AOAM531SUDpCnN1F8Jyj3EtMLpnK36S/Ifx9SpzSQ3D4Zs2JO3jppvWC ltjCDaMUUi6rJ7iOBVmf7RBCxxrLiZI= X-Received: by 2002:a05:600c:2257:: with SMTP id a23mr994061wmm.102.1599811578127; Fri, 11 Sep 2020 01:06:18 -0700 (PDT) Received: from ?IPv6:2001:a61:2479:6801:d8fe:4132:9f23:7e8f? ([2001:a61:2479:6801:d8fe:4132:9f23:7e8f]) by smtp.gmail.com with ESMTPSA id j10sm3193884wrn.2.2020.09.11.01.06.16 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 11 Sep 2020 01:06:17 -0700 (PDT) Cc: mtk.manpages@gmail.com, linux-man@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 05/24] offsetof.3: Use "%zu" rather than "%zd" when printing 'size_t' values To: Alejandro Colomar References: <20200910211344.3562-1-colomar.6.4.3@gmail.com> <20200910211344.3562-6-colomar.6.4.3@gmail.com> From: "Michael Kerrisk (man-pages)" Message-ID: <2d314f24-eb78-bb62-a9c6-d3859c895d55@gmail.com> Date: Fri, 11 Sep 2020 10:06:16 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0 MIME-Version: 1.0 In-Reply-To: <20200910211344.3562-6-colomar.6.4.3@gmail.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 9/10/20 11:13 PM, Alejandro Colomar wrote: > Signed-off-by: Alejandro Colomar Thanks, Alex. Patch Applied. Cheers, Michael > --- > man3/offsetof.3 | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > > diff --git a/man3/offsetof.3 b/man3/offsetof.3 > index 05fdd6dd8..f0c9975f4 100644 > --- a/man3/offsetof.3 > +++ b/man3/offsetof.3 > @@ -93,10 +93,10 @@ main(void) > > /* Output is compiler dependent */ > > - printf("offsets: i=%zd; c=%zd; d=%zd a=%zd\en", > + printf("offsets: i=%zu; c=%zu; d=%zu a=%zu\en", > offsetof(struct s, i), offsetof(struct s, c), > offsetof(struct s, d), offsetof(struct s, a)); > - printf("sizeof(struct s)=%zd\en", sizeof(struct s)); > + printf("sizeof(struct s)=%zu\en", sizeof(struct s)); > > exit(EXIT_SUCCESS); > } > -- Michael Kerrisk Linux man-pages maintainer; http://www.kernel.org/doc/man-pages/ Linux/UNIX System Programming Training: http://man7.org/training/