Received: by 2002:a05:7412:d8a:b0:e2:908c:2ebd with SMTP id b10csp655047rdg; Wed, 11 Oct 2023 01:24:49 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFl8DgkAt9sPN71D7djTedUPxqgQk92Aapl2sSJpryawGn6j0aL8EhgazlOr+qIh+CBVoSC X-Received: by 2002:a05:6a00:2356:b0:68e:2822:fb36 with SMTP id j22-20020a056a00235600b0068e2822fb36mr20075277pfj.8.1697012689603; Wed, 11 Oct 2023 01:24:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1697012689; cv=none; d=google.com; s=arc-20160816; b=LgWUtTuCbJTBX865mT5/ZnaPto/ba60elCwKWcY0s2crZ1RB/z/wFEnHnKHjUJPgC4 k3ulONzE24ptSeFFc+pQ3RY54Oj3qmqB4zohWsAgqkj3mlfV9eM6OmGnEYLdDL47ssdy LUcNGlJa5F6pU/o9DEYBbfbduPOeQi2gD0KqJQaT3MNh0Ucw3Xg5pAGo2nRlE+VQPooF GwgtMK4ylbarov4Cn73vrWoVa5WzacVlgvibtUR9/hi24QQSkVk4IsQdCtHx/0BCAeLz yVAEl1IOrSa5gfNhVOBMN9oMga1c3IticuiHQKFNzxK3Ya5BsMrwUzbPeA4kRz2fuMnV GmFQ== 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=oz7MPegbZByyIrpNQY0Wvl9RR35K0wrPqEAn2+cban+tZjuc3eFInvdrnAXZn7kMtl 2j5gUBc1vDDXkSg/nyx4gdRIZoaB2cptD6NMJUArWvP+lujLn1/AW/RaiHNHUHgTOvka /M0k+o/89Kx5ChHWRP0WSpTQe7iHSgPdSMHtl8gWabU4bKNW1832+C8nVa1nuufIddCW Gb5tmUAhABIx5lAGcd9SH8dx9Zeb5oAqDHsJxIpHIlxaJ5F2NFrVEP2T6IVUXiomtRJM AVlPDFJKILFiUg8K+SJKnAJYmBFmUh6NbIvJ9PxTXM0d7qeY2dE9zz8qRE0cBcE7cDtY Lagw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=i99FAbNU; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 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 snail.vger.email (snail.vger.email. [2620:137:e000::3:7]) by mx.google.com with ESMTPS id t10-20020a65608a000000b00578b6e32b5dsi13288739pgu.405.2023.10.11.01.24.49 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 11 Oct 2023 01:24:49 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) client-ip=2620:137:e000::3:7; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=i99FAbNU; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 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 snail.vger.email (Postfix) with ESMTP id A430081A3342; Wed, 11 Oct 2023 01:24:48 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1344899AbjJKIYo (ORCPT + 99 others); Wed, 11 Oct 2023 04:24:44 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47070 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1344007AbjJKIYl (ORCPT ); Wed, 11 Oct 2023 04:24:41 -0400 Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.9]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E13AA92; Wed, 11 Oct 2023 01:24:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1697012680; x=1728548680; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=ArKiKzRHxYzfbJNN+HN0Ktz/ZV7JTI0Hu+EuWZDRMeU=; b=i99FAbNUAwAh0DIX4lgt61xwLUVYgXhRY+84Qq4IQwU4lvbwnxImM3Z5 sBbi7iPsX51AcnhYhV4QYQFCmIbpvjrvkqsvBOq5awh7Lgh2Y0kpzU0yd T2z0bDfdsgHa8nyVVjtOT7DjG3CmFr9WX6Q089CEH4I+kwrMpxJbDA8Zu kXAHEfUvBohsnYDrzDj728o1udZ7h61EBYjX2OwZjDYaZ1mPTumAMOYQN a+eUrhUGbIywIp4XBPucJsGI3/FPdUXJF0cej59c3NYMxTu0G5VIkkVe2 nrykx4PS+6CSBgDdFrOda+UCq5T3sRQjt0rOH4zvtGxggqvcaAletp82k A==; X-IronPort-AV: E=McAfee;i="6600,9927,10859"; a="3200738" X-IronPort-AV: E=Sophos;i="6.03,214,1694761200"; d="scan'208";a="3200738" Received: from orsmga006.jf.intel.com ([10.7.209.51]) by orvoesa101.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 11 Oct 2023 01:24:35 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10859"; a="730411611" X-IronPort-AV: E=Sophos;i="6.03,214,1694761200"; d="scan'208";a="730411611" Received: from bmatwiej-mobl.ger.corp.intel.com (HELO wieczorr-mobl1.intel.com) ([10.213.17.119]) by orsmga006-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 11 Oct 2023 01:24:32 -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 v5 2/8] selftests/cachestat: Fix print_cachestat format Date: Wed, 11 Oct 2023 10:23:58 +0200 Message-ID: <46044a7aea13532ea7d5a97201dc152ec653ea52.1697012398.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.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF, RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE,SPF_NONE,URIBL_BLOCKED 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-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (snail.vger.email [0.0.0.0]); Wed, 11 Oct 2023 01:24:48 -0700 (PDT) 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