Message ID | 46044a7aea13532ea7d5a97201dc152ec653ea52.1697012398.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:2908:b0:403:3b70:6f57 with SMTP id ib8csp381937vqb; Wed, 11 Oct 2023 01:26:10 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGaIZ0oiGASO57e9GcYr4ZMJE5WWRnLNM288S2QLLNVRfCCPjO/+DyRuskVZ+uRp8gnE+GJ X-Received: by 2002:a05:6359:639d:b0:149:cbfd:c663 with SMTP id sg29-20020a056359639d00b00149cbfdc663mr15933184rwb.2.1697012770647; Wed, 11 Oct 2023 01:26:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1697012770; cv=none; d=google.com; s=arc-20160816; b=ONodbRe/TKiOrzzUrWMtevKtXJC/E2ou8Ni8Q7Yv0nF4frf9ch9it1lXS2n+FyZAmK 6rYb+XvyE5yDeFPPDAkscOxfRsHdJnn2hPEyB+saepSDpa/m5sSMdkz5pfBrQlC3xpUM b9au/TGLSh4eHueozJujDbY9hDHbpxv211FQM3rzkI6porYwhUySblfPNFA1X51Z3OyA RL4ycjj567QSUb8V+5B6XGq/XR+G74dEgBlNEN8jPRUueZ5RjFaKgs9y93NJ3klqt+1U 5PYltAC43NSsUyxNYsaEgpCrQf4nr2NPZYmpPBzbgk76R28LfJBhfEttUyGYRClUPgFH Zlbg== 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:8 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 fry.vger.email (fry.vger.email. [2620:137:e000::3:8]) by mx.google.com with ESMTPS id be3-20020a656e43000000b0058555ea0a21si5280189pgb.571.2023.10.11.01.26.10 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 11 Oct 2023 01:26:10 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 as permitted sender) client-ip=2620:137:e000::3:8; 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:8 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 fry.vger.email (Postfix) with ESMTP id 4B9A980A9E14; Wed, 11 Oct 2023 01:25:05 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at fry.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1345054AbjJKIYp (ORCPT <rfc822;rua109.linux@gmail.com> + 19 others); Wed, 11 Oct 2023 04:24:45 -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 <rfc822;linux-kernel@vger.kernel.org>); 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 <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 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: <cover.1697012398.git.maciej.wieczor-retman@intel.com> References: <cover.1697012398.git.maciej.wieczor-retman@intel.com> 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, URIBL_BLOCKED autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on fry.vger.email 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 (fry.vger.email [0.0.0.0]); Wed, 11 Oct 2023 01:25:05 -0700 (PDT) X-Spam-Level: ** X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1779446862997134332 X-GMAIL-MSGID: 1779446862997134332 |
Series |
Add printf attribute to kselftest functions
|
|
Commit Message
Maciej Wieczor-Retman
Oct. 11, 2023, 8:23 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. Signed-off-by: Maciej Wieczor-Retman <maciej.wieczor-retman@intel.com> Acked-by: Nhat Pham <nphamcs@gmail.com> --- 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); }