summaryrefslogtreecommitdiffstats
path: root/CryptoPkg
diff options
context:
space:
mode:
authorMichael D Kinney <michael.d.kinney@intel.com>2021-12-05 14:33:42 -0800
committermergify[bot] <37929162+mergify[bot]@users.noreply.github.com>2021-12-07 17:24:28 +0000
commite3b855f2838e234aabcaf659dc32465da5e0b2f3 (patch)
tree86099751b18fadd6aafcd6d379a3df12b7c56c2a /CryptoPkg
parentea85f0fe1313a0090f4fa287bb75dbf3a00e0909 (diff)
downloadedk2-e3b855f2838e234aabcaf659dc32465da5e0b2f3.tar.gz
edk2-e3b855f2838e234aabcaf659dc32465da5e0b2f3.tar.bz2
edk2-e3b855f2838e234aabcaf659dc32465da5e0b2f3.zip
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>
Diffstat (limited to 'CryptoPkg')
-rw-r--r--CryptoPkg/Library/TlsLib/TlsConfig.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/CryptoPkg/Library/TlsLib/TlsConfig.c b/CryptoPkg/Library/TlsLib/TlsConfig.c
index 307eb57896..739fc44194 100644
--- a/CryptoPkg/Library/TlsLib/TlsConfig.c
+++ b/CryptoPkg/Library/TlsLib/TlsConfig.c
@@ -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;
}
-