diff options
author | Michael D Kinney <michael.d.kinney@intel.com> | 2021-12-05 14:33:42 -0800 |
---|---|---|
committer | mergify[bot] <37929162+mergify[bot]@users.noreply.github.com> | 2021-12-07 17:24:28 +0000 |
commit | e3b855f2838e234aabcaf659dc32465da5e0b2f3 (patch) | |
tree | 86099751b18fadd6aafcd6d379a3df12b7c56c2a /CryptoPkg/Library | |
parent | ea85f0fe1313a0090f4fa287bb75dbf3a00e0909 (diff) | |
download | edk2-e3b855f2838e234aabcaf659dc32465da5e0b2f3.tar.gz |
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/Library')
-rw-r--r-- | CryptoPkg/Library/TlsLib/TlsConfig.c | 5 |
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;
}
-
|