From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from out5-smtp.messagingengine.com (out5-smtp.messagingengine.com [66.111.4.29]) by mx.groups.io with SMTP id smtpd.web11.171764.1680819879979496777 for ; Thu, 06 Apr 2023 15:24:40 -0700 Authentication-Results: mx.groups.io; dkim=fail reason="signature has expired" header.i=@bsdio.com header.s=fm3 header.b=VETLstVA; spf=pass (domain: bsdio.com, ip: 66.111.4.29, mailfrom: rebecca@bsdio.com) Received: from compute6.internal (compute6.nyi.internal [10.202.2.47]) by mailout.nyi.internal (Postfix) with ESMTP id 4DA7F5C01D2; Thu, 6 Apr 2023 18:24:39 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute6.internal (MEProxy); Thu, 06 Apr 2023 18:24:39 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bsdio.com; h=cc :cc:content-transfer-encoding:content-type:date:date:from:from :in-reply-to:in-reply-to:message-id:mime-version:references :reply-to:sender:subject:subject:to:to; s=fm3; t=1680819879; x= 1680906279; bh=GQ8i4qyQQnhbTABA44rfAsx/CJkRVqsJXYqIJcLyHoQ=; b=V ETLstVAOIbamDOQiL4r6Zz+yo9Ac4/6GE5yeWtqwaW2OJmZUTm+7a8KOivnfiuis Y4hms4MK8dlpwsnLRibT68a4fMeS00bcd6CmnpwQjHm8I16aMf+6DPYNilDEoxB9 MAahgV44697D0S8/IHgkWsdMJgrA9moM5MGrconRwgDNnO9ufTDmEdqd6W0Y0bWg WwAjfre4JYgJR0zh42/EQXDSGn2qELMpsYB0POK4twvE7o/IeanTpEBq1mZJayC4 ewzgU2Z+zu9BFk7WGFygW4CtVbHG1gPjKKPMsA3ESooKWtPkr1icMrixZkHN4eS5 NTt9y47GWt/qgKkaK5F2g== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding :content-type:date:date:feedback-id:feedback-id:from:from :in-reply-to:in-reply-to:message-id:mime-version:references :reply-to:sender:subject:subject:to:to:x-me-proxy:x-me-proxy :x-me-sender:x-me-sender:x-sasl-enc; s=fm2; t=1680819879; x= 1680906279; bh=GQ8i4qyQQnhbTABA44rfAsx/CJkRVqsJXYqIJcLyHoQ=; b=O Ms5PP98h2thosyy2pmTF9ESX87jG7WETBNGwtquXjnmTEA+0PINp+NxONJpZOjqG J+Bp7C8SmE3Z018EmjhSryV5Dmo08988yeWH6fxTYhQL+YiG5XQMm/A2pA5a5VAf xNuxT0T7Pgery7vPchngHpceklbyLUlIKiHhY8tO5qzliPxyTGpqKO/LeLKUUKTp f3GykVCMH/Jq5UFbJq5dBF+5vZhZufLo/y5RvKix4eOxUt42OiXD0xiKHkIBFNjC 3gmizPmylWX98/TAij1pbq2ZuQbS8piN71lS/dl7YOswhglUPuTDVjdtXLx1OfT7 i4zPPZIDpoCatZpzytyWg== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvhedrvdejgedgtdejucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhephffvvefufffkofgjfhgggfestdekredtredttdenucfhrhhomheptfgvsggv tggtrgcuvehrrghnuceorhgvsggvtggtrgessghsughiohdrtghomheqnecuggftrfgrth htvghrnhepgeffueeuledvgefgvddvgfetvdduhfefkedukeeikedtudekfeetteeifedv leefnecuvehluhhsthgvrhfuihiivgepgeenucfrrghrrghmpehmrghilhhfrhhomheprh gvsggvtggtrgessghsughiohdrtghomh X-ME-Proxy: Feedback-ID: i5b994698:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Thu, 6 Apr 2023 18:24:35 -0400 (EDT) From: "Rebecca Cran" To: devel@edk2.groups.io, Liming Gao , Michael D Kinney , Guomin Jiang , Wei6 Xu , Guo Dong , Ray Ni , Sean Rhodes , James Lu , Gua Guo , Andrew Fish , Hao A Wu , Maciej Rabeda , Siyuan Fu , Jiewen Yao , Jian J Wang , Xiaoyu Lu , Ard Biesheuvel , Sami Mujawar , Supreeth Venkatesh , Michael Kubacki , Nate DeSimone , Sean Brogan Cc: Rebecca Cran , Leif Lindholm , Abner Chang , Nickle Wang , Igor Kulchytskyy , Daniel Schaefer , Min Xu , Jordan Justen , Gerd Hoffmann , Peter Grehan , Erdem Aktas , James Bottomley , Tom Lendacky , Michael Roth , Sunil V L , Andrei Warkentin Subject: [PATCH 18/18] FmpDevicePkg: Update code to be more C11 compliant by using __func__ Date: Thu, 6 Apr 2023 16:23:19 -0600 Message-Id: <20230406222319.2281263-19-rebecca@bsdio.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230406222319.2281263-1-rebecca@bsdio.com> References: <20230406222319.2281263-1-rebecca@bsdio.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit __FUNCTION__ is a pre-standard extension that gcc and Visual C++ among others support, while __func__ was standardized in C99. Since it's more standard, replace __FUNCTION__ with __func__ throughout FmpDevicePkg. Visual Studio versions before VS 2015 don't support __func__ and so will fail to compile. A workaround is to define __func__ as __FUNCTION__ : #define __func__ __FUNCTION__ Signed-off-by: Rebecca Cran --- FmpDevicePkg/FmpDxe/VariableSupport.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/FmpDevicePkg/FmpDxe/VariableSupport.c b/FmpDevicePkg/FmpDxe/VariableSupport.c index 541e5e0f5fc7..5126c5e2d556 100644 --- a/FmpDevicePkg/FmpDxe/VariableSupport.c +++ b/FmpDevicePkg/FmpDxe/VariableSupport.c @@ -832,7 +832,7 @@ LockAllFmpVariables ( // Locate the VariablePolicy protocol. Status = gBS->LocateProtocol (&gEdkiiVariablePolicyProtocolGuid, NULL, (VOID **)&VariablePolicy); if (EFI_ERROR (Status)) { - DEBUG ((DEBUG_ERROR, "FmpDxe %a - Could not locate VariablePolicy protocol! %r\n", __FUNCTION__, Status)); + DEBUG ((DEBUG_ERROR, "FmpDxe %a - Could not locate VariablePolicy protocol! %r\n", __func__, Status)); return Status; } -- 2.34.1