From patchwork Tue Jul 18 03:37:28 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jaegeuk Kim X-Patchwork-Id: 13316703 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from lists.sourceforge.net (lists.sourceforge.net [216.105.38.7]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 3F24DEB64DC for ; Tue, 18 Jul 2023 03:37:42 +0000 (UTC) Received: from [127.0.0.1] (helo=sfs-ml-3.v29.lw.sourceforge.com) by sfs-ml-3.v29.lw.sourceforge.com with esmtp (Exim 4.95) (envelope-from ) id 1qLbWu-0001hO-FR; Tue, 18 Jul 2023 03:37:40 +0000 Received: from [172.30.20.202] (helo=mx.sourceforge.net) by sfs-ml-3.v29.lw.sourceforge.com with esmtps (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.95) (envelope-from ) id 1qLbWq-0001hI-JG for linux-f2fs-devel@lists.sourceforge.net; Tue, 18 Jul 2023 03:37:38 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=sourceforge.net; s=x; h=Content-Transfer-Encoding:MIME-Version:Message-ID: Date:Subject:Cc:To:From:Sender:Reply-To:Content-Type:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:In-Reply-To:References:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=CWkwQcE4g8D4UrLpsfSAjGxcsIg6pZV2OqZut64Zaco=; b=CNRwyVPOPqNhidmdO6c1wyZeGg aFJEGCJPF2THhVlHOu2bEqTYfnfmKU8DIcZvAG16Zxou7oYFgFOjwnXoTOVFWBS0DDDwLWCIktQ5A XP7vMKncMCkXlIZG2R9QrSfbPcbBcfM5ASkKvjj05MYqAIHYTRbJ4pABceTAjiOXusP4=; DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=sf.net; s=x ; h=Content-Transfer-Encoding:MIME-Version:Message-ID:Date:Subject:Cc:To:From :Sender:Reply-To:Content-Type:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To: References:List-Id:List-Help:List-Unsubscribe:List-Subscribe:List-Post: List-Owner:List-Archive; bh=CWkwQcE4g8D4UrLpsfSAjGxcsIg6pZV2OqZut64Zaco=; b=K +LbQc1d1TsMv/VWN3LU6pWGlc+Fuv3THLA8v2Y3QUQwQ8KoyzAhy4oJ9LfbSwnnjF8vbtNqkciy0G rmfNLfgmoAUeqZfAZGYMioTYKTpH4Ho7iHI7ELQVdQN+EWjfXMYlGaSeETo8O96I7oMHWFHG8ZQSE c3emwXdf/vMn6iTc=; Received: from dfw.source.kernel.org ([139.178.84.217]) by sfi-mx-1.v28.lw.sourceforge.com with esmtps (TLS1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.95) id 1qLbWp-00BOnh-VA for linux-f2fs-devel@lists.sourceforge.net; Tue, 18 Jul 2023 03:37:36 +0000 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 67FC0611AB for ; Tue, 18 Jul 2023 03:37:30 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id BC99DC433C7; Tue, 18 Jul 2023 03:37:29 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1689651449; bh=hqFX19ePvyggE5tbXCUO/gQvepzTAxskGKPLrtqrsCk=; h=From:To:Cc:Subject:Date:From; b=GBsE0ZYVYD0aGMpJPLV8PPYdjDfJ88jehvx8DcDctj/hQtf/cY0EFLjjtl4ZhPFOj Zl5H7g05zDh9XNNAergvZuIVLgZYBCgYc63lc3s3RPeODm2SRgqunKHrYlTMxgy8nT SUzpCqnze1LxkltBv5resZQNP/2kkdGLpFtDPc8HWrhXJc0olOL5vUR5R08dqhcVEx M62qlPw/hyh+z1xxjC8Oxy8dlwUL5ZUuHIco2JZaOArVbKo4epyKEsh3EuGRtm13BJ ggvIreDFTlel7nPS6W1P0FPlT7te70G8skLXzLshxM+fQxbXvqONUm2+3rFzs2W030 hG/C9h12C5vgw== From: Jaegeuk Kim To: linux-f2fs-devel@lists.sourceforge.net Date: Mon, 17 Jul 2023 20:37:28 -0700 Message-ID: <20230718033728.1286392-1-jaegeuk@kernel.org> X-Mailer: git-send-email 2.41.0.255.g8b1d071c50-goog MIME-Version: 1.0 X-Headers-End: 1qLbWp-00BOnh-VA Subject: [f2fs-dev] [PATCH] f2fs_io: fix build warning X-BeenThere: linux-f2fs-devel@lists.sourceforge.net X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Jaegeuk Kim Errors-To: linux-f2fs-devel-bounces@lists.sourceforge.net external/f2fs-tools/tools/f2fs_io/f2fs_io.c:1452:3: error: format specifies type 'unsigned long' but the argument has type 'u64' (aka 'unsigned long long') [-Werror,-Wformat] range.start, range.len, ret); ^~~~~~~~~~~ external/f2fs-tools/tools/f2fs_io/f2fs_io.c:1452:16: error: format specifies type 'unsigned long' but the argument has type 'u64' (aka 'unsigned long long') [-Werror,-Wformat] range.start, range.len, ret); ^~~~~~~~~ 2 errors generated. 20:35:27 ninja failed with: exit status 1 Signed-off-by: Jaegeuk Kim --- tools/f2fs_io/f2fs_io.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/f2fs_io/f2fs_io.c b/tools/f2fs_io/f2fs_io.c index b4e73079e76c..73ac700f8209 100644 --- a/tools/f2fs_io/f2fs_io.c +++ b/tools/f2fs_io/f2fs_io.c @@ -1447,7 +1447,7 @@ static void do_gc_range(int argc, char **argv, const struct cmd_desc *cmd) die_errno("F2FS_IOC_GARBAGE_COLLECT_RANGE failed"); } - printf("trigger %s gc_range [%lu, %lu] ret=%d\n", + printf("trigger %s gc_range [%"PRIu64", %"PRIu64"] ret=%d\n", range.sync ? "synchronous" : "asynchronous", range.start, range.len, ret); exit(0);