Received: by 2002:a05:7412:d8a:b0:e2:908c:2ebd with SMTP id b10csp655634rdg; Wed, 11 Oct 2023 01:26:24 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGpp0aBx1oUB3r++TytG4r9T6k0ERimAmEYQtS0cuOcrkJyqCmiPnd1s6HuHVkiVz7kqKgr X-Received: by 2002:a05:6870:5894:b0:1ba:bb13:d007 with SMTP id be20-20020a056870589400b001babb13d007mr23434958oab.5.1697012783770; Wed, 11 Oct 2023 01:26:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1697012783; cv=none; d=google.com; s=arc-20160816; b=tUgWCR7P66LLaOQOT5+kOxQZuqYT3Aud+noYAgjaJHaMRHX76etlWjhpVodsNKgGQy ZNF6lYHltI8s8R2ELeVyBAQP4gOSzYEYWn1fe080pVm3NY1mAuzmpcTola9ljAMrJz3W 1qVDzUf6w2gABJA6Msq8KOf0c1jAPmikN0xg45gRJ259PkLSp16XRLLlwLg+yl2tDo6I y0TANoVP807Q4GZ9i1VYHWarGLp7umJv9Cg0yrWJuYSI8UL4PeJHdJkZ++L0oYewRYiE JYUwSz3ODt8AwicB0dCc08pYaK5KNuKb81873AhfxRII7Ip3IzbzOJi76w/rwDl6lyho 0xRg== 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=tDEMS6bAol36tNHY49oH0L7/1K/nhFPr0xO9hmHzgZ8=; fh=/pACME0x50g4vorTSG5vEdNwgU981WFvy8LGbk4DPBk=; b=SVxYs4kGXIhJujjzOz11Eham7bKWgzsnj8+ed81PeikDoMgODniMoJwfql6jJPX5wK +UtLEbLNS4CjQDhXCxEPVFxcIEzSAdDd+OzPry222pYZC3XjxFqzCym8yn1UQM9D1LfA vaOow/4UdngIMYGMIqj73JSWdp3vdEvjcnLsIlOJG80u7RVFdqjJgP5Ohmvh0BsY9YkZ tJluNqgsudr1UG78TDx/pwYKzR5cwAgUi9XvPGKHdqcnk++f8ng1S7gFp5TVtbU1VQRu wjiP8EqtenOs0CAUDUNn9DKR1kX5dCcEyHUQbkb/an5D94eoJe0NrnLIh6wwtDQdH/sT WoQQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=HCu9A5cE; 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 Return-Path: Received: from fry.vger.email (fry.vger.email. [2620:137:e000::3:8]) by mx.google.com with ESMTPS id b15-20020a6567cf000000b00565d88203c8si3637701pgs.535.2023.10.11.01.26.23 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 11 Oct 2023 01:26:23 -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=HCu9A5cE; 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 CF4BB80A9E28; Wed, 11 Oct 2023 01:25:49 -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 S230202AbjJKIZh (ORCPT + 99 others); Wed, 11 Oct 2023 04:25:37 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59474 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230370AbjJKIZ2 (ORCPT ); Wed, 11 Oct 2023 04:25:28 -0400 Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.9]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 54747D7; Wed, 11 Oct 2023 01:25:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1697012723; x=1728548723; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=e6BI+6LqlyJDuHOdbdL+OddfPbz+bxG5n4BSrS0nh0Y=; b=HCu9A5cEbHI2NotBRp++j31VXVzuYfwQrcC2wcBhzenrXXbpZeX9v05P cKhCwIc/rvQZt+VzOCp3aN34USjNGIHVh8pChtV1qeiImBeJAZhLiuNKb fSjnseWLk1I6Cn+djw6JtVNNiQ39mKrZMdpmQIB51d8O8Ps5B0qZcUXIh MfZGNqJWL6dbAZBZh3jVJxCUE4FXRkUBE0QqP3bXNZz2huWokvrK+sBLH NazvAT/moqIEtQnS3xmFi4dBjbBVh5a8sEdYRMmgIMjbLuv3Pzebfa8uh oEtiURstJ4KEtJvHJbxkuysJa4/oU7fPBtPA0ATGvUKl+IMrwFudU7is6 Q==; X-IronPort-AV: E=McAfee;i="6600,9927,10859"; a="3200937" X-IronPort-AV: E=Sophos;i="6.03,214,1694761200"; d="scan'208";a="3200937" 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:25:17 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10859"; a="730411878" X-IronPort-AV: E=Sophos;i="6.03,214,1694761200"; d="scan'208";a="730411878" 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:25:13 -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 v5 8/8] selftests/resctrl: Fix wrong format specifier Date: Wed, 11 Oct 2023 10:24:04 +0200 Message-ID: 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=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: 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:50 -0700 (PDT) X-Spam-Level: ** 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. Signed-off-by: Maciej Wieczor-Retman Reviewed-by: Ilpo Järvinen Reviewed-by: Reinette Chatre --- Changelog v4: - Added Reinette's reviewed-by tag. Changelog v3: - Added Ilpo's reviewed-by tag. Changelog v2: - Added 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