Received: by 2002:a05:7412:d8a:b0:e2:908c:2ebd with SMTP id b10csp892547rdg; Fri, 13 Oct 2023 04:38:06 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGGfm8wfGKO9gyW2Wf1nWZRG0Q3XIfh6eSS9BTpacu/5YBKfAqjpwsgIM+2bhZNcR+5goRb X-Received: by 2002:a05:6358:924:b0:14c:ff8a:6501 with SMTP id r36-20020a056358092400b0014cff8a6501mr33782987rwi.0.1697197086429; Fri, 13 Oct 2023 04:38:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1697197086; cv=none; d=google.com; s=arc-20160816; b=fNlgaVOtsfFjKsJ9gDP6zzFQYoLcnZT8CAS5fFkbQ6MO9uSDdMBJ+KSrXmqXZ6nUgb 6Zma6J3w9vI9XxgFKQjASFwKkhy2kEGHAiAqyVC0ZcdPRoF2YgCgp6B74w4NHs1De5U6 xG/Hrv+aOLoEasm8+B/L+DLjYppQu9fmeYDlV8ozmVegj3wkDjKfRtm97JsP7m0U7LtW NbAVG0B5poWOxV92dszC2FIXtOxrjRsbr3fa/AXMuVvx3vKF87iIzNfZfFXoCRASdhn6 m2FE9TCX+jRqbKo+6EWixJ5o7f9/mCO57sMD5uiLg2T3rv8li3nBviplSe+kGk45jkSr NRhQ== 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=XkDTaZC5x+nDVFQbbpS36i99zcNk5MDKG6IwhpLzfLM=; fh=fn0AWIQbuxjUao4CckPCArAms5Ae1ulO+SPfXoxHNbk=; b=sy7kitiVcDCexAWGMAx6m7s1nRDtoLCbwqt6eSlm5+d9GEVvjnDPT6RQboKYhOEzbC 4YjfgHgB708FxKFlQGGBpVER4fzEIS312bzkAQL4q+I/6/eHJnstKtBoVYinF/eOVAvd /84MxBju7MnivkzgZKdc21sQolS42jspvF1i0IJ1Q/Ux/of2iZMn1ndsRKSdC1Qli3uI UefQ/W/AtDxQXnPZCK6yRPiQjp2O/6A6i6t4GMg6igJl5eMcfsnmEM9eI3GSu2hycLJv hegGaICZViwUh6/knnUfyq5uUadvF0/X4A+obYU7qGawYAFjPxuAiX7otyGBKWBw+pVx kXWA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=iZdKPMCG; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 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 agentk.vger.email (agentk.vger.email. [23.128.96.32]) by mx.google.com with ESMTPS id h7-20020a056a00230700b0068a3cb58334si17255784pfh.320.2023.10.13.04.38.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 13 Oct 2023 04:38:06 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 as permitted sender) client-ip=23.128.96.32; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=iZdKPMCG; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 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 328A881C36C9; Fri, 13 Oct 2023 04:38:00 -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 S231362AbjJMLhk (ORCPT + 99 others); Fri, 13 Oct 2023 07:37:40 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43710 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231334AbjJMLhf (ORCPT ); Fri, 13 Oct 2023 07:37:35 -0400 Received: from mgamail.intel.com (mgamail.intel.com [134.134.136.31]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 01B4EF2; Fri, 13 Oct 2023 04:37:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1697197051; x=1728733051; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=3bx8/TmfDVTeLxrpfdTbDmZDE+cWxEKh3qGqlPOmMng=; b=iZdKPMCGGckxmal5iV9nMHy55QeycyUMFXx2J2KMOJQMJKO2evzLpl79 QkP0u+UR+xLMdNI07gbaQK7GZRZmin0+bct2BjOh6AosKTg1Liyq+2e5G kMCJoD7wAV9T0h+j8XfL+31zl27XbrCCQ5vbEVlGrTGni5Tvw9/nfaqGS 6OL8pTpOww6WCp5VMkk6bxqBOLwnWNlJLgJIxLnmDYfiDqJiTGH9FwPR1 n/kBdUtil9AXTJY9RUpf5zsWAsq5my27i9Ds1tK1QHLtnjAlokrKqrvX7 YgTViSUsslJwXEP+tqizSwT2R1NY2VBcC+lMvluvdlJrTzerVwNbPZid7 A==; X-IronPort-AV: E=McAfee;i="6600,9927,10861"; a="449353302" X-IronPort-AV: E=Sophos;i="6.03,222,1694761200"; d="scan'208";a="449353302" Received: from orsmga002.jf.intel.com ([10.7.209.21]) by orsmga104.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 13 Oct 2023 04:37:30 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10861"; a="754675749" X-IronPort-AV: E=Sophos;i="6.03,222,1694761200"; d="scan'208";a="754675749" Received: from bsankiew-mobl.ger.corp.intel.com (HELO wieczorr-mobl1.intel.com) ([10.213.0.114]) by orsmga002-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 13 Oct 2023 04:37:27 -0700 From: Maciej Wieczor-Retman To: Shuah Khan Cc: ilpo.jarvinen@linux.intel.com, linux-kselftest@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v6 5/8] selftests/sigaltstack: Fix wrong format specifier Date: Fri, 13 Oct 2023 13:36:29 +0200 Message-ID: <64236465acd03192975dd174aae9b99aad323987.1697196663.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=-0.9 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS autolearn=unavailable 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: 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]); Fri, 13 Oct 2023 04:38:00 -0700 (PDT) Compiling sigaltstack selftest after adding a __printf() attribute to ksft_print_msg() exposes -Wformat warning in main(). The format specifier inside ksft_print_msg() expects a long unsigned int but the passed variable is of unsigned int type. Fix the format specifier so it matches the passed variable. Signed-off-by: Maciej Wieczor-Retman Reviewed-by: Ilpo Järvinen --- Changelog v6: - Add an explanation to the patch message on how the warning that the patch resolves was caught. (Shuah) Changelog v2: - Add Reviewed-by tag (Ilpo) tools/testing/selftests/sigaltstack/sas.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/testing/selftests/sigaltstack/sas.c b/tools/testing/selftests/sigaltstack/sas.c index 98d37cb744fb..07227fab1cc9 100644 --- a/tools/testing/selftests/sigaltstack/sas.c +++ b/tools/testing/selftests/sigaltstack/sas.c @@ -111,7 +111,7 @@ int main(void) /* Make sure more than the required minimum. */ stack_size = getauxval(AT_MINSIGSTKSZ) + SIGSTKSZ; - ksft_print_msg("[NOTE]\tthe stack size is %lu\n", stack_size); + ksft_print_msg("[NOTE]\tthe stack size is %u\n", stack_size); ksft_print_header(); ksft_set_plan(3); -- 2.42.0