Received: by 2002:a05:7412:37c9:b0:e2:908c:2ebd with SMTP id jz9csp2704661rdb; Fri, 22 Sep 2023 06:25:18 -0700 (PDT) X-Google-Smtp-Source: AGHT+IH32OfpQdC/CNQIqOsRrw9faIXfXAD3IpotSaxx+aJCCeE0Q6TZsE5+8kEIwDqJDQYqrrWT X-Received: by 2002:a17:902:ed0c:b0:1c5:d0ba:41f with SMTP id b12-20020a170902ed0c00b001c5d0ba041fmr4821707pld.55.1695389118147; Fri, 22 Sep 2023 06:25:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1695389118; cv=none; d=google.com; s=arc-20160816; b=sz4+NzHsivA/5GC1KFg1LwI32xpFnhEXxsVih5KTOQ8/8QKOmcrq6QgVGV+F16fNYw jcMLkwkHqroPuzEEPB0OwLosbZoe9ykAD7d2H2vP3u4c4sXFc9Nu2cBd8kfm1KSK2Loc 6HMtJB31Ympc5zESjYcd0Iu/wXIewbaiNjb8cLidQz4dfENwpsP1dEfQ7897fKZ9S4uQ pGeh0FuZh1dyC0O5WH9Uu0sKzSNh/OO6cQ8VEccU9+TGWfGHizM3Y4hIa4jy90qHSFub Yp9fR3LABvrht8/h1p/rle2xInm3ec/6ujPZr9WOAhlHePUdw+rAzGJfaMJC+4jnisa6 XuIg== 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=Nkcmy00d1eqqrxbjk2XKRFboQueN0UxGKCS7/Yvj49g=; fh=/pACME0x50g4vorTSG5vEdNwgU981WFvy8LGbk4DPBk=; b=vr/5nsS77QcjOf0yHVA4xIgK0ZJhx+hUr7mU2MoM8GUyxre+Q5glk9Dx7SB50y/nNq QYMkOvCq0K/Qe6pfn0akua49VTeECiMw3kBskRBdsBXIu6HQHjZRVo8AHTLVCZYvaiXk JpGT82A9JMxwMLMZi7p5BH9cg4SCrxwtR389dhW8zv8Te/ZtAoQvEjR6U/gD3sHZxRsE tMNZEOjZj8Y3JWBDG78gvik0ZV4XTJKYHdLDVHx5ri+Red+8OBhCbUravHe2KVUf4F+H ka0lMAJUOm/BtW5+OnWlARtbfa+U2PM38RYamRT0coPMySnzKr2ZqseCeWrp8NBnp9lR /6tA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=eovIzkBa; 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 iz21-20020a170902ef9500b001c3e98a0d79si3586715plb.401.2023.09.22.06.25.17 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 22 Sep 2023 06:25:18 -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=eovIzkBa; 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 1D2EA835D800; Fri, 22 Sep 2023 02:08: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 S233013AbjIVJIQ (ORCPT + 99 others); Fri, 22 Sep 2023 05:08:16 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43854 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232923AbjIVJIC (ORCPT ); Fri, 22 Sep 2023 05:08:02 -0400 Received: from mgamail.intel.com (mgamail.intel.com [192.55.52.93]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id F1526197; Fri, 22 Sep 2023 02:07:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1695373677; x=1726909677; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=fIfufOMVX6qOMz3hJ3V7MKHi5KE15rGIfodp2fmInKw=; b=eovIzkBa9VdzZXo9vZ/d8A3SfiyknOIgG8jJB3GUt+7BLlUOhR7633AP R/34funHYfnQZFOEGS+0VqblfF93vs6ozYcHEb7fA7SgGYUxO09bykveV n9s8e22w3+AhVAiv9Qjt0UyMGjtEp5EqsiXq91wIkyRPz3mo4V55RInFy Yw3hziaTnkwD6ePEHp7togl25bdFgKR2dnlsqT3oEEvL9uAhIwg5TvnG6 Ux8Wb35qCiB6tqHN4TCwmq5MgZ96SJi1EjAlgeTGAVWSBBa9Kf3vHkojS lWMOFF7dmBHzFEIneYOqbr16Z/QAywijSCO7zCsNjYJY6yUVZRX+jFm36 Q==; X-IronPort-AV: E=McAfee;i="6600,9927,10840"; a="378070941" X-IronPort-AV: E=Sophos;i="6.03,167,1694761200"; d="scan'208";a="378070941" 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:56 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10840"; a="837664095" X-IronPort-AV: E=Sophos;i="6.03,167,1694761200"; d="scan'208";a="837664095" 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:54 -0700 From: Maciej Wieczor-Retman To: Fenghua Yu , Reinette Chatre , Shuah Khan Cc: ilpo.jarvinen@linux.intel.com, linux-kernel@vger.kernel.org, linux-kselftest@vger.kernel.org Subject: [PATCH v3 8/8] selftests/resctrl: Fix wrong format specifier Date: Fri, 22 Sep 2023 11:06:44 +0200 Message-ID: <1545d7dfb7dd73a7bb2b28fe2f643b87421bf20c.1695373131.git.maciej.wieczor-retman@intel.com> X-Mailer: git-send-email 2.42.0 In-Reply-To: References: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 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:08:19 -0700 (PDT) A long unsigned int variable is passed to the ksft_print_msg() and the format specifier used expects a variable of type int. Change the format specifier to match the passed variable. Reviewed-by: Ilpo Järvinen Signed-off-by: Maciej Wieczor-Retman --- Changelog v3: - Add Reviewed-by tag. (Ilpo) Changelog v2: - Add this patch to the series. tools/testing/selftests/resctrl/cache.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/testing/selftests/resctrl/cache.c b/tools/testing/selftests/resctrl/cache.c index d3cbb829ff6a..a5d082cd2d53 100644 --- a/tools/testing/selftests/resctrl/cache.c +++ b/tools/testing/selftests/resctrl/cache.c @@ -294,7 +294,7 @@ int show_cache_info(unsigned long sum_llc_val, int no_of_bits, ret = platform && abs((int)diff_percent) > max_diff_percent && (cmt ? (abs(avg_diff) > max_diff) : true); - ksft_print_msg("%s Check cache miss rate within %d%%\n", + ksft_print_msg("%s Check cache miss rate within %lu%%\n", ret ? "Fail:" : "Pass:", max_diff_percent); ksft_print_msg("Percent diff=%d\n", abs((int)diff_percent)); -- 2.42.0