mirror of https://github.com/acidanthera/audk.git
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:
parent
ea85f0fe13
commit
e3b855f283
|
@ -375,7 +375,7 @@ TlsSetCipherList (
|
||||||
// 79 non-newline characters. (MAX_DEBUG_MESSAGE_LENGTH is usually 0x100 in
|
// 79 non-newline characters. (MAX_DEBUG_MESSAGE_LENGTH is usually 0x100 in
|
||||||
// DebugLib instances.)
|
// DebugLib instances.)
|
||||||
//
|
//
|
||||||
DEBUG_CODE (
|
DEBUG_CODE_BEGIN ();
|
||||||
UINTN FullLength;
|
UINTN FullLength;
|
||||||
UINTN SegmentLength;
|
UINTN SegmentLength;
|
||||||
|
|
||||||
|
@ -398,7 +398,7 @@ TlsSetCipherList (
|
||||||
//
|
//
|
||||||
CipherStringPosition++;
|
CipherStringPosition++;
|
||||||
ASSERT (CipherStringPosition == CipherString + CipherStringSize);
|
ASSERT (CipherStringPosition == CipherString + CipherStringSize);
|
||||||
);
|
DEBUG_CODE_END ();
|
||||||
|
|
||||||
//
|
//
|
||||||
// Sets the ciphers for use by the Tls object.
|
// Sets the ciphers for use by the Tls object.
|
||||||
|
@ -1264,4 +1264,3 @@ TlsGetCertRevocationList (
|
||||||
{
|
{
|
||||||
return EFI_UNSUPPORTED;
|
return EFI_UNSUPPORTED;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue