From patchwork Fri Oct 13 09:27:35 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnd Bergmann X-Patchwork-Id: 115720 Delivered-To: patch@linaro.org Received: by 10.140.22.163 with SMTP id 32csp511537qgn; Fri, 13 Oct 2017 02:28:18 -0700 (PDT) X-Google-Smtp-Source: AOwi7QCKmNGqp1SCxi8cEPQnHIVruCI3BONGen8trPENRygmQIT1rdcEwjFmi/Nj6E7tncS1pHlu X-Received: by 10.159.253.11 with SMTP id p11mr851893pls.372.1507886898314; Fri, 13 Oct 2017 02:28:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1507886898; cv=none; d=google.com; s=arc-20160816; b=OrhvYx6apDikYnTA10X7qx4Mqgo4Hd0/3kgjGdhpKSSdM7wNjV3jo2af/BpTJvlcMP SCW9NRW72GIRZh0R2Yr9IA8W7FFpo+HN1CXZzwl2XSiee7k62wFEYTC3Wd9xXpEsboe/ VissYuKKfwk3xw4uyCrwstHPTXRPZClugKXQ22nw8ss1ce4VW/7KLYLqh9ZPa0HuB+Fx GEefY6N4kULzIu2dGLM42ITQjxSNLuKol6pnc9bAnehGdKLKnjvxgKguNPqNf3upAW6n 6Xhc0Naprk+eQU+/T0d4Q1Kw4j/0UUMhmZAXyon3Y5dB+kOilaFKotdRJW88ol8KxEXY 43gA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :arc-authentication-results; bh=f8zSNagjfmlW0gn+RVfNIizFdg8Gr5cjQ9hxu2KST18=; b=q5Dvbn+DNPWH+bHnR/3cBCVIGoWszNv2v6CgGGk13yx1c7jfe2jpRioESPF9X4FqOC 8oe7UGfG7arP+gcFjq7Fisyo3ve6vUA6U9dmzvSzVza7R22Jwp1BuJTOIJEd3iEu54XX HpVp8MLQq/U4CHimmt9tfp88vY430vf5IG6hvYLGWsKK/1WWl73pWc4bJ/x9W3/dQ7oP f6bK+J/q/+Zy5HwIdHvl8sdLia/C9DGOdkCkGNjU5Es4vDOygc6c1hYTIhd0TVcCT+UW XDnUslcOYvs6sTMO+fM5d2JMl2HwMjfurtBOVfzrFUdLST01GqJRGx31tGGpyoJW/ypu K6XQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id x12si360566pgc.70.2017.10.13.02.28.17; Fri, 13 Oct 2017 02:28:18 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1758101AbdJMJ2P (ORCPT + 27 others); Fri, 13 Oct 2017 05:28:15 -0400 Received: from mout.kundenserver.de ([212.227.17.13]:60498 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1758079AbdJMJ2L (ORCPT ); Fri, 13 Oct 2017 05:28:11 -0400 Received: from wuerfel.lan ([46.223.139.202]) by mrelayeu.kundenserver.de (mreue105 [212.227.15.145]) with ESMTPA (Nemesis) id 0MNcrq-1eA70F0g5y-0079tl; Fri, 13 Oct 2017 11:28:01 +0200 From: Arnd Bergmann To: Chris Mason , Josef Bacik , David Sterba Cc: Arnd Bergmann , Qu Wenruo , linux-btrfs@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] btrfs: tree-checker: use %zu format string for size_t Date: Fri, 13 Oct 2017 11:27:35 +0200 Message-Id: <20171013092759.712725-1-arnd@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fXTV8LaZlfQ14Rw== Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org We now get a harmless compile-time on 32-bit architectures: fs/btrfs/tree-checker.c: In function 'check_extent_data_item': fs/btrfs/tree-checker.c:189:70: error: format '%lu' expects argument of type 'long unsigned int', but argument 6 has type 'unsigned int' [-Werror=format=] This changes the format string to use %zu instead of %lu for size_t. Fixes: c1f6520bf360 ("btrfs: tree-checker: Enhance output for check_extent_data_item") Signed-off-by: Arnd Bergmann --- fs/btrfs/tree-checker.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 2.9.0 Reviewed-by: David Sterba diff --git a/fs/btrfs/tree-checker.c b/fs/btrfs/tree-checker.c index c7a09cc2a17c..388fb6553aa5 100644 --- a/fs/btrfs/tree-checker.c +++ b/fs/btrfs/tree-checker.c @@ -186,7 +186,7 @@ static int check_extent_data_item(struct btrfs_root *root, /* Regular or preallocated extent has fixed item size */ if (item_size != sizeof(*fi)) { file_extent_err(root, leaf, slot, - "invalid item size for reg/prealloc file extent, have %u expect %lu", + "invalid item size for reg/prealloc file extent, have %u expect %zu", item_size, sizeof(*fi)); return -EUCLEAN; }