Received: by 2002:a05:7412:da14:b0:e2:908c:2ebd with SMTP id fe20csp1800818rdb; Mon, 9 Oct 2023 03:31:41 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFzY5kg7jgL5Va6plGKA1DlJQmHiUawvt2mqVn4btna5z3uq2fXbMMCBP1zVbdN6aaRtgc+ X-Received: by 2002:a05:6358:7252:b0:134:c859:d32a with SMTP id i18-20020a056358725200b00134c859d32amr16815015rwa.25.1696847501601; Mon, 09 Oct 2023 03:31:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1696847501; cv=none; d=google.com; s=arc-20160816; b=k7cYTAnBSPKN2gKnqwaj6Ggdktjbj6RNNxCx5gV3eJW0Zu8HkdKPEol6TSMLlRCBwh KdEI8E5sphKQOwgcjL0tutEtP7ny1XqwqH77skGnZ41VdfmRFCAFTe1qSjSTu9SEU9Ur qLa5ez1aRJRUApWGH22Q8TM+NTTikQRGWAjUtFciR9SA9iqIPNF4h7akx6ZN0t2bvF/N 0emdrX38TCXQ8kzx21tV7yp4Q3IU0NxfAP6dKqSexzE85xNF1GfbBciwZCZ9leAg7eUW a/jn8yfQPyHMuUAcwq0adaSyEN/iN0kGNHBx5Ksyp3tq0s0NQuxd4DnSX9h6WCgsM10O AD/Q== 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=QMQCUqiKCZ+/b2Fi5Gjj2lldpdCbu3DU7ppITIiqn4U=; fh=qtD+gWrkNhH7C3mZdB5+RIyQPnUsUGmOVWssklzVers=; b=cRpjYZFNbRQlDryQgJRgMhXg2jCyTHfNqI/J7I/EObJfnFW6uMHoh0CxUyUloOOxY/ 444CL4SiGt61+xbsqWVSLGlbrwTEz3vWthMMWgiF2fnlT503rX2Wd3WHp3gR07I7lgmg JbN0P658j10vnvqgt6iYPeKH7EQ/MQenIJePoJ40dz1beMc57hu9d3obVFFPeWUCdUpO 7z5x7YtQ61yVoce6MbTPbViAbwhlKbfm4/Ql94xVW3sq300+mpKixvM742xJFzUL92VY OR4ofhfm+33epwE6qos5wYWRwoWLHmKvNMCDo1veRSqsu8vdi3dOevFnzLoRReReHiTP B4fA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=g61bKAaX; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from agentk.vger.email (agentk.vger.email. [23.128.96.32]) by mx.google.com with ESMTPS id l125-20020a633e83000000b00585a02550e1si7619497pga.50.2023.10.09.03.31.40 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 09 Oct 2023 03:31:41 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 as permitted sender) client-ip=23.128.96.32; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=g61bKAaX; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by agentk.vger.email (Postfix) with ESMTP id 7BCF88041FED; Mon, 9 Oct 2023 03:31:38 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at agentk.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1345825AbjJIKbX (ORCPT + 99 others); Mon, 9 Oct 2023 06:31:23 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45326 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1345831AbjJIKbS (ORCPT ); Mon, 9 Oct 2023 06:31:18 -0400 Received: from mgamail.intel.com (mgamail.intel.com [192.55.52.136]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C996099; Mon, 9 Oct 2023 03:31:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1696847476; x=1728383476; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=ArKiKzRHxYzfbJNN+HN0Ktz/ZV7JTI0Hu+EuWZDRMeU=; b=g61bKAaXEEmqFP2zDhItMP7htBB8tUapSXC5zr5IlKWxWIPNibKGMhdO SwAvJ6ztZQfN8OkZrte+uRykdkm8ruNXghrXO695AQtnVlrELA0bnVBBq uTY1LavGsO4ri5aXGzH6a8MbNkHmfBqZiB9WlH5rIdHvugprEcHVDMk5g fbKX0sPIE+OWVkTnXtiP3dSdWXv2EWmNRlkAHY5PdKITTe96J3SSqdVlg eALyv56CqLtrBucBZqm9oZ8JEyk4GFNjPRlDkPfuDPmbUpBMBk+cvX3W2 2eepf45IHt1Ngr5mjtN9EaBuum4W9J7nJhVNzV9F4GD2TsMxO+58qsIoh w==; X-IronPort-AV: E=McAfee;i="6600,9927,10857"; a="363468380" X-IronPort-AV: E=Sophos;i="6.03,210,1694761200"; d="scan'208";a="363468380" Received: from orsmga005.jf.intel.com ([10.7.209.41]) by fmsmga106.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 09 Oct 2023 03:31:16 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10857"; a="926718650" X-IronPort-AV: E=Sophos;i="6.03,210,1694761200"; d="scan'208";a="926718650" Received: from kkensic-mobl1.ger.corp.intel.com (HELO wieczorr-mobl1.intel.com) ([10.213.30.239]) by orsmga005-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 09 Oct 2023 03:31:13 -0700 From: Maciej Wieczor-Retman To: Nhat Pham , Johannes Weiner , Shuah Khan Cc: ilpo.jarvinen@linux.intel.com, linux-mm@kvack.org, linux-kselftest@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v4 2/8] selftests/cachestat: Fix print_cachestat format Date: Mon, 9 Oct 2023 12:30:36 +0200 Message-ID: <2f34bb45233c29fda28eb8fb66215d475c3c7fd6.1696846568.git.maciej.wieczor-retman@intel.com> X-Mailer: git-send-email 2.42.0 In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=2.7 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RCVD_IN_SBL_CSS,SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on agentk.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (agentk.vger.email [0.0.0.0]); Mon, 09 Oct 2023 03:31:38 -0700 (PDT) X-Spam-Level: ** 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: Maciej Wieczor-Retman Acked-by: Nhat Pham --- Changelog v2: - Added Acked-by tag (Nhat) 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 4804c7dc7b31..b171fd53b004 100644 --- a/tools/testing/selftests/cachestat/test_cachestat.c +++ b/tools/testing/selftests/cachestat/test_cachestat.c @@ -27,7 +27,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); } -- 2.42.0