Message ID | e8a41d7462be51a7e0cef0c426d4e6580e4916c4.1695373131.git.maciej.wieczor-retman@intel.com |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:612c:172:b0:3f2:4152:657d with SMTP id h50csp5551550vqi; Fri, 22 Sep 2023 06:01:24 -0700 (PDT) X-Google-Smtp-Source: AGHT+IF1Yb8CFCbqooD5f7rafVRUd5fnX6N6H8/F7GKQjlsCSnIHj0hv4VpNtwF2Vl0JpHQtzpTb X-Received: by 2002:a17:903:2345:b0:1c3:a4f2:7cc1 with SMTP id c5-20020a170903234500b001c3a4f27cc1mr8388047plh.5.1695387683118; Fri, 22 Sep 2023 06:01:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1695387683; cv=none; d=google.com; s=arc-20160816; b=cvK38aIPQJrWA8OKDosUAAF2Np88YAfaKmKSmSVcJ3WMwdcef1pAmYhGnbR/+DuX0c TqWWpig9fTQ88+XXMSM4nDHLR3Aqb0JuSkQfGN5oHZyxSv1oK74b97UbDlgqgL7gDMId qSr0nmKZPWiH8zYUgI6QJd2PsOKYF39CzvDwK2pvzTC1Qn8VNjdmpkeTFsdoYvQ9ZjZD ubynASzEbOuM1j8o79KaLxXuSUsAKq+TQkoQ6UhZJ7Ks7ECArq0OzQY7rYriSIZ/pLfJ SE2v5qt1skPTYAz9X3ohdylDB5bzA720yVXziiMA32SooUF2/w/6lJml2QjR8LH55Fij 7FYQ== 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 Received: from snail.vger.email (snail.vger.email. [23.128.96.37]) by mx.google.com with ESMTPS id jb22-20020a170903259600b001b8904eadb8si3484098plb.460.2023.09.22.06.01.09 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 22 Sep 2023 06:01:23 -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 A29A3835C212; Fri, 22 Sep 2023 02:07:19 -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 S232845AbjIVJHR (ORCPT <rfc822;chrisfriedt@gmail.com> + 30 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 <rfc822;linux-kernel@vger.kernel.org>); 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 <maciej.wieczor-retman@intel.com> To: Nhat Pham <nphamcs@gmail.com>, Johannes Weiner <hannes@cmpxchg.org>, Shuah Khan <shuah@kernel.org> 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: <e8a41d7462be51a7e0cef0c426d4e6580e4916c4.1695373131.git.maciej.wieczor-retman@intel.com> X-Mailer: git-send-email 2.42.0 In-Reply-To: <cover.1695373131.git.maciej.wieczor-retman@intel.com> References: <cover.1695373131.git.maciej.wieczor-retman@intel.com> 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: <linux-kernel.vger.kernel.org> 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:19 -0700 (PDT) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1777742835350899199 X-GMAIL-MSGID: 1777742835350899199 |
Series |
Add printf attribute to kselftest functions
|
|
Commit Message
Maciej Wieczor-Retman
Sept. 22, 2023, 9:06 a.m. UTC
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 <nphamcs@gmail.com> Signed-off-by: Maciej Wieczor-Retman <maciej.wieczor-retman@intel.com> --- 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); }