From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from linux.microsoft.com (linux.microsoft.com [13.77.154.182]) by mx.groups.io with SMTP id smtpd.web08.3575.1662520778793481212 for ; Tue, 06 Sep 2022 20:19:38 -0700 Authentication-Results: mx.groups.io; dkim=fail reason="body hash did not verify" header.i=@linux.microsoft.com header.s=default header.b=lqAvtIXx; spf=pass (domain: linux.microsoft.com, ip: 13.77.154.182, mailfrom: mikuback@linux.microsoft.com) Received: from localhost.localdomain (unknown [47.195.228.134]) by linux.microsoft.com (Postfix) with ESMTPSA id B6AC520B929C; Tue, 6 Sep 2022 20:19:37 -0700 (PDT) DKIM-Filter: OpenDKIM Filter v2.11.0 linux.microsoft.com B6AC520B929C DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.microsoft.com; s=default; t=1662520778; bh=i9Uj0Gd22RwRjS8i2Fvr+Nlqk2QH2eOZq4xKCoigD/8=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=lqAvtIXxFndHLyvbfzxzvi6nU9j1W83GT7nA5E0nZ02lNOkPcgWbn1EHSEh9dQRFo guY6SYiET+WoysW7GX78VGzxc71IG9yb8F7LBiDpnSv1wnI8wqWliDSKrfIWZfgTZg wueKMoRsxQVj6JVDS9GNu6MUqR6+gMyUZTx70hBM= From: "Michael Kubacki" To: devel@edk2.groups.io Cc: Chasel Chiu , Nate DeSimone , Star Zeng Subject: [PATCH v1 1/7] IntelFsp2Pkg: Fix code formatting errors Date: Tue, 6 Sep 2022 23:19:08 -0400 Message-Id: <20220907031914.397-2-mikuback@linux.microsoft.com> X-Mailer: git-send-email 2.28.0.windows.1 In-Reply-To: <20220907031914.397-1-mikuback@linux.microsoft.com> References: <20220907031914.397-1-mikuback@linux.microsoft.com> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable From: Michael Kubacki REF:https://bugzilla.tianocore.org/show_bug.cgi?id=3D4048 This package did not have CI enabled so code changes were merged that fail uncrustify formatting. This change updates those files to include uncustify formatting. Cc: Chasel Chiu Cc: Nate DeSimone Cc: Star Zeng Signed-off-by: Michael Kubacki --- IntelFsp2Pkg/Library/BaseFspDebugLibSerialPort/DebugLib.c | 9 +++++= ---- IntelFsp2Pkg/Library/BaseFspSwitchStackLib/FspSwitchStackLib.c | 2 +- IntelFsp2Pkg/Include/Ppi/Variable.h | 8 ++++-= --- 3 files changed, 10 insertions(+), 9 deletions(-) diff --git a/IntelFsp2Pkg/Library/BaseFspDebugLibSerialPort/DebugLib.c b/= IntelFsp2Pkg/Library/BaseFspDebugLibSerialPort/DebugLib.c index cb2317bfb240..8e24b946cd88 100644 --- a/IntelFsp2Pkg/Library/BaseFspDebugLibSerialPort/DebugLib.c +++ b/IntelFsp2Pkg/Library/BaseFspDebugLibSerialPort/DebugLib.c @@ -193,8 +193,8 @@ DebugBPrint ( **/ VOID FillHex ( - UINTN Value, - CHAR8 *Buffer + UINTN Value, + CHAR8 *Buffer ) { INTN Idx; @@ -227,8 +227,8 @@ DebugAssertInternal ( VOID ) { - CHAR8 Buffer[MAX_DEBUG_MESSAGE_LENGTH]; - UINTN *Frame; + CHAR8 Buffer[MAX_DEBUG_MESSAGE_LENGTH]; + UINTN *Frame; =20 Frame =3D (UINTN *)GetStackFramePointer (); =20 @@ -250,6 +250,7 @@ DebugAssertInternal ( sizeof (Buffer) / sizeof (CHAR8) - 1 ); } + SerialPortWrite ((UINT8 *)"ASSERT DUMP:\n", 13); while (Frame !=3D NULL) { FillHex ((UINTN)Frame, Buffer + 9); diff --git a/IntelFsp2Pkg/Library/BaseFspSwitchStackLib/FspSwitchStackLib= .c b/IntelFsp2Pkg/Library/BaseFspSwitchStackLib/FspSwitchStackLib.c index 69a021f42b39..a0b2193bdeab 100644 --- a/IntelFsp2Pkg/Library/BaseFspSwitchStackLib/FspSwitchStackLib.c +++ b/IntelFsp2Pkg/Library/BaseFspSwitchStackLib/FspSwitchStackLib.c @@ -31,6 +31,6 @@ SwapStack ( =20 FspData =3D GetFspGlobalDataPointer (); OldStack =3D FspData->CoreStack; - FspData->CoreStack =3D (UINTN) NewStack; + FspData->CoreStack =3D (UINTN)NewStack; return OldStack; } diff --git a/IntelFsp2Pkg/Include/Ppi/Variable.h b/IntelFsp2Pkg/Include/P= pi/Variable.h index 3e1f4b98a999..581f14880813 100644 --- a/IntelFsp2Pkg/Include/Ppi/Variable.h +++ b/IntelFsp2Pkg/Include/Ppi/Variable.h @@ -184,10 +184,10 @@ EFI_STATUS /// to store data in the PEI environment. /// struct _EDKII_PEI_VARIABLE_PPI { - EDKII_PEI_GET_VARIABLE GetVariable; - EDKII_PEI_GET_NEXT_VARIABLE_NAME GetNextVariableName; - EDKII_PEI_SET_VARIABLE SetVariable; - EDKII_PEI_QUERY_VARIABLE_INFO QueryVariableInfo; + EDKII_PEI_GET_VARIABLE GetVariable; + EDKII_PEI_GET_NEXT_VARIABLE_NAME GetNextVariableName; + EDKII_PEI_SET_VARIABLE SetVariable; + EDKII_PEI_QUERY_VARIABLE_INFO QueryVariableInfo; }; =20 extern EFI_GUID gEdkiiPeiVariablePpiGuid; --=20 2.28.0.windows.1