From nobody Fri Feb 13 17:34:06 2026 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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 9AFACCD4F33 for ; Fri, 22 Sep 2023 09:07:14 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232850AbjIVJHS (ORCPT ); Fri, 22 Sep 2023 05:07:18 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56436 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229576AbjIVJHM (ORCPT ); Fri, 22 Sep 2023 05:07:12 -0400 Received: from mgamail.intel.com (mgamail.intel.com [192.55.52.93]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5C7E2C2; Fri, 22 Sep 2023 02:07:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1695373626; x=1726909626; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=NiX1MgvNmkNZTzkEVA0Rdibok7pwobd1aq2tL12Wxxg=; b=EnhaFLb/8k4POGxkVux0yGe5QbcH7cmrlsHwK2CFX3orOICjzN1h0VC4 rWD3JoswQahaKK75IW6MBPKUfimMrcVok5XaKsfB9gSOKM3yFfJ2AXyID UgTWOuexsTGOwycl+PV4SJ1JA1gIxRGxHoYKF0tBxUWkFMg6LXkPZdDKd DMObMo8quT2AyVXMvZi67doeq/ZUbdvtcYT5kMgwTX/BiWsMpAG5HnONz zmnwGqogKTkVjxUwEYwEXEs/2SC8Qmty0OM0qHnQ5CMDHxW14jFY65m03 zdsTHIAD4Hx87/lhPOO1pCz+V3AuNFkd0VaG/xSYi+mSiLsKiMrmSj8mp g==; X-IronPort-AV: E=McAfee;i="6600,9927,10840"; a="378070761" X-IronPort-AV: E=Sophos;i="6.03,167,1694761200"; d="scan'208";a="378070761" Received: from fmsmga003.fm.intel.com ([10.253.24.29]) by fmsmga102.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 22 Sep 2023 02:07:06 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10840"; a="837663649" X-IronPort-AV: E=Sophos;i="6.03,167,1694761200"; d="scan'208";a="837663649" Received: from bmatwiej-mobl.ger.corp.intel.com (HELO wieczorr-mobl1.intel.com) ([10.213.8.2]) by fmsmga003-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 22 Sep 2023 02:07:03 -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 v3 2/8] selftests/cachestat: Fix print_cachestat format Date: Fri, 22 Sep 2023 11:06:38 +0200 Message-ID: X-Mailer: git-send-email 2.42.0 In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Type: text/plain; charset="utf-8" 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. Acked-by: Nhat Pham Signed-off-by: Maciej Wieczor-Retman --- Changelog v2: - Add 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/tes= ting/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[] =3D { 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: %l= lu, Recently Evicted: %llu\n", cs->nr_cache, cs->nr_dirty, cs->nr_writeback, cs->nr_evicted, cs->nr_recently_evicted); } --=20 2.42.0