CryptoPkg: Change complex DEBUG_CODE() to DEBUG_CODE_BEGIN/END()

REF: https://bugzilla.tianocore.org/show_bug.cgi?id=3767

Update use of DEBUG_CODE(Expression) if Expression is a complex code
block with if/while/for/case statements that use {}.

Cc: Andrew Fish <afish@apple.com>
Cc: Leif Lindholm <leif@nuviainc.com>
Cc: Michael Kubacki <michael.kubacki@microsoft.com>
Signed-off-by: Michael D Kinney <michael.d.kinney@intel.com>
Reviewed-by: Jian J Wang <jian.j.wang@intel.com>
This commit is contained in:
Michael D Kinney 2021-12-05 14:33:42 -08:00 committed by mergify[bot]
parent ea85f0fe13
commit e3b855f283
1 changed files with 2 additions and 3 deletions

View File

@ -375,7 +375,7 @@ TlsSetCipherList (
// 79 non-newline characters. (MAX_DEBUG_MESSAGE_LENGTH is usually 0x100 in
// DebugLib instances.)
//
DEBUG_CODE (
DEBUG_CODE_BEGIN ();
UINTN FullLength;
UINTN SegmentLength;
@ -398,7 +398,7 @@ TlsSetCipherList (
//
CipherStringPosition++;
ASSERT (CipherStringPosition == CipherString + CipherStringSize);
);
DEBUG_CODE_END ();
//
// Sets the ciphers for use by the Tls object.
@ -1264,4 +1264,3 @@ TlsGetCertRevocationList (
{
return EFI_UNSUPPORTED;
}