Message ID | e2c11ae4a3138cf362a65d7450ea3e117b25ec49.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 ib8csp382149vqb; Wed, 11 Oct 2023 01:26:39 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGH4a0U4pEvSUJVStBEwW+6mQs4pP47w6kGLRenr+e8NH0BvMv0TY7tGV90iGxX2K/cVKHc X-Received: by 2002:a17:902:d2c7:b0:1c6:2b3d:d918 with SMTP id n7-20020a170902d2c700b001c62b3dd918mr23219685plc.3.1697012799272; Wed, 11 Oct 2023 01:26:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1697012799; cv=none; d=google.com; s=arc-20160816; b=se4xWIMRG1H4UGV4VAv6H6mQOTDdcLA/H5SjKNmoPGUTE2ON3tkDVO2ORZIBxC1c+4 23o698UrHWWU5msOlTZ4gKW10Q+N78kz+EBXjrv9DooSwcf4qHn+OIlocyEVeWGA6VXb VBA4rN4IbexJy0DLkma12kc1g0m+7w9muBuE82M+dDbcPaQv0gRKcxErVfm6pL5hcRYS bYfKAME3tabv6DSE0ZLqxm4eGysJly4nk1m8mWXWRGPB5RCYRbR/CeIJO4f0M9Q2WDG7 v3mVNMONQrIy04p/QBNKBnL+JY1PfTJGBkYt5iYXcHx1h+oE3i34Q03C603O/Ec3rUj/ s1hg== 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:2 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 agentk.vger.email (agentk.vger.email. [2620:137:e000::3:2]) by mx.google.com with ESMTPS id cp12-20020a170902e78c00b001c77172c43asi12906856plb.261.2023.10.11.01.26.39 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 11 Oct 2023 01:26:39 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) client-ip=2620:137:e000::3:2; 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:2 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 agentk.vger.email (Postfix) with ESMTP id 68D528095651; Wed, 11 Oct 2023 01:25:55 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at agentk.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1345542AbjJKIZi (ORCPT <rfc822;rua109.linux@gmail.com> + 19 others); Wed, 11 Oct 2023 04:25:38 -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 <rfc822;linux-kernel@vger.kernel.org>); 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 <maciej.wieczor-retman@intel.com> To: Fenghua Yu <fenghua.yu@intel.com>, Reinette Chatre <reinette.chatre@intel.com>, Shuah Khan <shuah@kernel.org> 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: <e2c11ae4a3138cf362a65d7450ea3e117b25ec49.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-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 agentk.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 (agentk.vger.email [0.0.0.0]); Wed, 11 Oct 2023 01:25:55 -0700 (PDT) X-Spam-Level: ** X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1779446893100051733 X-GMAIL-MSGID: 1779446893100051733 |
Series |
Add printf attribute to kselftest functions
|
|
Commit Message
Maciej Wieczor-Retman
Oct. 11, 2023, 8:24 a.m. UTC
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 <maciej.wieczor-retman@intel.com> Reviewed-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com> Reviewed-by: Reinette Chatre <reinette.chatre@intel.com> --- 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));