Received: by 2002:a05:7412:da14:b0:e2:908c:2ebd with SMTP id fe20csp1801054rdb; Mon, 9 Oct 2023 03:32:12 -0700 (PDT) X-Google-Smtp-Source: AGHT+IG8EFziPBjVfbt1WtQBNF2hcv52edQr/5TDn79sE12hKxxgYjqz+ERDs8wRJSNQs1JpB/5/ X-Received: by 2002:a17:903:2288:b0:1c3:8230:30d8 with SMTP id b8-20020a170903228800b001c3823030d8mr14848889plh.38.1696847531849; Mon, 09 Oct 2023 03:32:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1696847531; cv=none; d=google.com; s=arc-20160816; b=eBuWLNQ/tF2OMJV86jAawoH2rkaT1tbqPHC4iQX878O9KAIZn5ko1QgKGC4dQbUwh5 FbrfsgN0l++k6Efz/WRZENUtowjlJRCliPP3Hyfh/CVtVMezRy8oQPuYxYaTJhEPjGxZ 4HYNV5txenoDOGW8a8nO1gwmdTNAzYkM1QMbhhwuV1cDkx6xRcy/yxMiQHvPkI/QCyLg xVP1JTPkzb9kGls1DlBu6adyG2bwAMnUYtTq0ty88sHH/yjXCEXp3JNqucXlyXL0aJIX OWyRS1TorEpFg5XKO6fK3iRvxCwtDD4qrWdjn1GITfxk/v0DM2DGTCTpB9g8cKmfMiD/ 8zvA== 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=r2ouMMpdFvlnPBxttZgoGSr0Pnn6zfvaIy7lo5uzTp0cqwmf86PsNU2d58xX3RN/De 66amZ1yS2QRxmDD8NPe92XrwPqcNKNFfag2Bt5h1tbuaHV7gb9/YnuOIHU5jYznT0IjH gLS4q0QpMMHuKu1hFispbQQ4bg38gVjsvT9ua+rxpCS1hfEQB8IQWstnsbctB4YRcuma COVTGbD9hVGj1lvUdlIh237hCc1Nwv+kgv04GIuZrvXyb9DOmUOhxksmJwl8hhTqFxPL K7WdrJUxrLmbFbqVVN4FgjF59FuGUi2aEjr69m35JLvSKJPkEuTOwE0S8VgvzX2zZu0t rwHw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=k0P2vL59; 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 jj10-20020a170903048a00b001b222cd9826si8995391plb.349.2023.10.09.03.32.11 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 09 Oct 2023 03:32:11 -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=k0P2vL59; 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 06B3180755E4; Mon, 9 Oct 2023 03:32:11 -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 S1345957AbjJIKcB (ORCPT + 99 others); Mon, 9 Oct 2023 06:32:01 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49630 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1345828AbjJIKb4 (ORCPT ); Mon, 9 Oct 2023 06:31:56 -0400 Received: from mgamail.intel.com (mgamail.intel.com [192.55.52.136]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6F474FA; Mon, 9 Oct 2023 03:31:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1696847511; x=1728383511; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=e6BI+6LqlyJDuHOdbdL+OddfPbz+bxG5n4BSrS0nh0Y=; b=k0P2vL59iS+F2kzPYLuOYMd3IwTbh83AvUGZsC+dr91urmpOspwSiI5Y NgoZpF2hdWcjoCXpjdBduRqSHHFqRdegPfAifNgt1pbDLDMAueCCnDgm2 irAHAUFIv1NduiGt3Ez5mfKsayZCXlYKBuMS/8hNZrxxgYIO06nmhPrSL bTAM+3u15XI5xZBNhAYdib27C94+9TMQWLY9Gch3X6BNlwrWsGw99KxZ/ L1gHXM+W1+OAx7XTiVQBfNscFOaglXi7yjMd4xlrR4C1gI7Ot8BA7PRU/ Lb78+OoWdbrJAOCKfq+GGUJXBxv1kQwAXxVqbZvqJSAZS6QWoW7l94Joe A==; X-IronPort-AV: E=McAfee;i="6600,9927,10857"; a="363468488" X-IronPort-AV: E=Sophos;i="6.03,210,1694761200"; d="scan'208";a="363468488" Received: from orsmga005.jf.intel.com ([10.7.209.41]) by fmsmga106.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 09 Oct 2023 03:31:51 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10857"; a="926718784" X-IronPort-AV: E=Sophos;i="6.03,210,1694761200"; d="scan'208";a="926718784" Received: from kkensic-mobl1.ger.corp.intel.com (HELO wieczorr-mobl1.intel.com) ([10.213.30.239]) by orsmga005-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 09 Oct 2023 03:31:47 -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 v4 8/8] selftests/resctrl: Fix wrong format specifier Date: Mon, 9 Oct 2023 12:30:42 +0200 Message-ID: <1d2bccaf291207cb1cf2fefa65efc087ccdf20d2.1696846568.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=-2.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF, RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE,SPF_NONE 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]); Mon, 09 Oct 2023 03:32:11 -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. 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