From patchwork Mon Aug 28 10:49:06 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Maciej Wieczor-Retman X-Patchwork-Id: 137021 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:a7d1:0:b0:3f2:4152:657d with SMTP id p17csp3244046vqm; Mon, 28 Aug 2023 03:53:09 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHZyUaQlygmoEp6uYoAKkZi9sNgCigaYq3DHHuhwGTbqG3esVhY0xXX7fUhXueSTH+60s/8 X-Received: by 2002:a17:906:9bd8:b0:9a1:c812:cbb9 with SMTP id de24-20020a1709069bd800b009a1c812cbb9mr11790045ejc.31.1693219989095; Mon, 28 Aug 2023 03:53:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1693219989; cv=none; d=google.com; s=arc-20160816; b=vOhhH0MB3g7abZI7dNgxHlflWRsCIId65nGTe3Dx0wIDON1xbBWvi60QYTfLZjZFF1 UJW91030pdpUSRKIbL+NC1WJfpvbmwako27N4v/S0fLiLfuAF4aTitfOgA8e+aqsPOu/ ZfbD0dujdWzH/8NT4jd1MAMgM04U7yo4i9dCcKHMp4NvmmCgDvNfePYmJqdLzJgGsd9p dPLAuFkFIRp41hxlmjgRtz/9hj+OIFg0OTJ+shSbjyQGMkfEzJuH6Qelpicc0mbBhGdE 2b0xgKqkLiEDyeqMMY4BJsUerorqG8HmSLv+1b5OLeicBr3KTSyWdnPL8klZbCqWsrmp xP5g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=kerPzjdwIGFQNh7mdPazVmM0fCblsNCX2mvZz2ZUeTU=; fh=iHIyRFPKPWRiwxRxZ+MijMeilqnQZXtg19MNCyK2GW0=; b=I7UqmNsHTMSA/2eOZOLC2nRpYSrlH+85n5vrGymK+vepEcTikzYzVROBdUedp2gD7M fr/VGAK0zTc4Bc6V6nFY3v4wHMO3XBfitmHRngUugBWknAdyvLAvA0uqgXGhuZSIGxz4 ntof/QK5nSxbCVtOZJHQtz3/1xr3HXcz9TDK98qqDOCYtgmue3qU00fYZ1cPTiwrDWo7 BDEgLyAog97kHPBA7nO5s1SPteX2bzfIJQ8YfoW/05AHKPFIE+CbYGzBM/L1vyO3yBbY UAPURwejmpu6Vktj4Xk/dYwaUooVOHSM5O4RhDqpfQvjM0hF5K3PLT4is7v/HBLpJFDa MFJQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@intel.com header.s=Intel header.b=ljUitEwj; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id t22-20020a1709060c5600b009a59b604305si2139453ejf.406.2023.08.28.03.52.24; Mon, 28 Aug 2023 03:53:09 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=fail header.i=@intel.com header.s=Intel header.b=ljUitEwj; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232156AbjH1Kun (ORCPT + 99 others); Mon, 28 Aug 2023 06:50:43 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52144 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232286AbjH1Ku3 (ORCPT ); Mon, 28 Aug 2023 06:50:29 -0400 Received: from mgamail.intel.com (mgamail.intel.com [192.55.52.151]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E87411B4; Mon, 28 Aug 2023 03:50:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1693219802; x=1724755802; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=oBFESXQeo8XUbeSjtiiAngLi2J8A9Sds/W2gNaZedsA=; b=ljUitEwj6gxEmWTMiQBDOeY3v93h/zvfHJuo3QqNyZ6LwgW7raWe/7sy vtoJgV6FGcba1MRwh8CfDFqywlP/0y3r8F58NP52o8HtQFmiZSMJGLXLv uRWuRCmKKitSQa/7it9rUpGgqbJsuquvHCq2X62nF3q1oDyXE8N62X8Zy vJEK5siVb0CQZMpHlv3lDlHSnQWC4Cqzcb61EpHFr1QPivXslAStvyTSq 9JSjfItyznL1eiag+lkfwWhUxhpnjY88PUGAbyMnq13oTUEQifmKKEMXr jXNhBArSlTmjj7/AY3ehlnpHxuSctsy9BonYDvV7IEMUPJFLWQm5naD5k w==; X-IronPort-AV: E=McAfee;i="6600,9927,10815"; a="355398803" X-IronPort-AV: E=Sophos;i="6.02,207,1688454000"; d="scan'208";a="355398803" Received: from fmsmga008.fm.intel.com ([10.253.24.58]) by fmsmga107.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 28 Aug 2023 03:49:56 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10815"; a="803658311" X-IronPort-AV: E=Sophos;i="6.02,207,1688454000"; d="scan'208";a="803658311" Received: from nwiklans-mobl.ger.corp.intel.com (HELO wieczorr-mobl1.intel.com) ([10.213.22.120]) by fmsmga008-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 28 Aug 2023 03:49:54 -0700 From: "Wieczor-Retman, Maciej" To: Nhat Pham , Johannes Weiner , Shuah Khan Cc: ilpo.jarvinen@linux.intel.com, reinette.chatre@intel.com, "Wieczor-Retman, Maciej" , Wieczor-Retman@vger.kernel.org, linux-mm@kvack.org, linux-kselftest@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 2/6] selftests/cachestat: Fix print_cachestat format Date: Mon, 28 Aug 2023 12:49:06 +0200 Message-ID: <8417dcd7ebdc464d12850873d6c48f95293e673c.1693216959.git.maciej.wieczor-retman@intel.com> X-Mailer: git-send-email 2.42.0 In-Reply-To: References: MIME-Version: 1.0 X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_NONE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1775469843250385617 X-GMAIL-MSGID: 1775469843250385617 The format specifier in printf() call expects long int variables and received long long int. Change format specifiers to long long int so they match passed variables. Signed-off-by: Wieczor-Retman, Maciej --- tools/testing/selftests/cachestat/test_cachestat.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/testing/selftests/cachestat/test_cachestat.c b/tools/testing/selftests/cachestat/test_cachestat.c index 77620e7ecf56..a7adf42afb20 100644 --- a/tools/testing/selftests/cachestat/test_cachestat.c +++ b/tools/testing/selftests/cachestat/test_cachestat.c @@ -25,7 +25,7 @@ static const char * const dev_files[] = { void print_cachestat(struct cachestat *cs) { ksft_print_msg( - "Using cachestat: Cached: %lu, Dirty: %lu, Writeback: %lu, Evicted: %lu, Recently Evicted: %lu\n", + "Using cachestat: Cached: %llu, Dirty: %llu, Writeback: %llu, Evicted: %llu, Recently Evicted: %llu\n", cs->nr_cache, cs->nr_dirty, cs->nr_writeback, cs->nr_evicted, cs->nr_recently_evicted); }