Received: by 2002:a05:7412:37c9:b0:e2:908c:2ebd with SMTP id jz9csp2901742rdb; Fri, 22 Sep 2023 11:25:45 -0700 (PDT) X-Google-Smtp-Source: AGHT+IH0hKrZnWavZpW+iC09Cr/xkvG2Fvp7+mEvg4aRvAp+8bjWTL34RURJPeqUEzprWpmBAwRe X-Received: by 2002:a05:6358:e484:b0:142:f9dd:5aa with SMTP id by4-20020a056358e48400b00142f9dd05aamr599390rwb.0.1695407145464; Fri, 22 Sep 2023 11:25:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1695407145; cv=none; d=google.com; s=arc-20160816; b=vpygxysqE93H6MuYZiaPjnbhTQ8Gifb8aA2meo8MD2nqARALK/rPVRDgS9fLasLbCQ 0As9sYOxRnI7AfHhnkNEhJ2mhbrecTSYZfNOLjmFyIvQPLxifFxX8wLo4h8hTZwg39Gr pG34fAjVUSpa70G44oVJRZmK2cnaG/RQ1bNyxu1ENjaKGeKyKqnpI3z6uyUsF3/ASe5Q Vzfu+dhWa9i7dZqy+1m8xpsuC9bjy/pgF16QiMFfbrw6gppJM86vAnvFMIelcEm4DIwU X8FXr5UhY+Q7toObh6aX5cCpFuuZH195SSkF9/4htOf9KZLuVoKWezQFyqoSgfeXWiNC rT6g== 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=7c6hMpqmpsuqsE9Tkk6azEv7jy3O91wqWYsdY/ask+M=; fh=qtD+gWrkNhH7C3mZdB5+RIyQPnUsUGmOVWssklzVers=; b=sgEBniYzsbHDlDkYHsNh0au6eSwYjGNoHrddTOsP/iJr2doD1Pf1cFyAeXrCHGNXpS U8in3ePdFhz90nCvFH2Oo3RxBbMrmJJzbqi5P0SWEjCLSTwVYXVfn/TioNYo32CZKbIB IigJ7YO4DeLgDI/swNeCHyN57PcV2y8Wm09yMp5ea4Aak0nxSmXlkYlhbJpGETUc1iRZ cAl9P2zJ+SL/Ley9/Hf+GKnUrr4dcJQMpvv41VRlIo2BNVGLRAJLtGidKlZewdfDW5fp ZErXqcC0YicQnfD0Aezuag7XGHo2AQsfudopjD0uoZZoO3ftO8okeGf20ICA5w8ACyH5 D+hA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b="EnhaFLb/"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 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. [23.128.96.37]) by mx.google.com with ESMTPS id u17-20020a656711000000b00565336a3cf5si4327742pgf.491.2023.09.22.11.25.44 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 22 Sep 2023 11:25:45 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) client-ip=23.128.96.37; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b="EnhaFLb/"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 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 85BB48354527; Fri, 22 Sep 2023 02:07:14 -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 S232807AbjIVJHR (ORCPT + 99 others); Fri, 22 Sep 2023 05:07:17 -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: 8bit 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,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]); Fri, 22 Sep 2023 02:07:14 -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. 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/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