diff options
author | Michael D Kinney <michael.d.kinney@intel.com> | 2021-12-05 14:33:53 -0800 |
---|---|---|
committer | mergify[bot] <37929162+mergify[bot]@users.noreply.github.com> | 2021-12-07 17:24:28 +0000 |
commit | 098307e0826000332aec57211da2f32359ed5b24 (patch) | |
tree | 0d59d6ff6dabe33063033e61f10718cba9d1bdc1 /MdePkg/Library/BasePeCoffGetEntryPointLib | |
parent | db52c7f755885d2f42279ba0d967c5d646d017b1 (diff) | |
download | edk2-098307e0826000332aec57211da2f32359ed5b24.zip edk2-098307e0826000332aec57211da2f32359ed5b24.tar.gz edk2-098307e0826000332aec57211da2f32359ed5b24.tar.bz2 |
MdePkg: 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: Liming Gao <gaoliming@byosoft.com.cn>
Diffstat (limited to 'MdePkg/Library/BasePeCoffGetEntryPointLib')
-rw-r--r-- | MdePkg/Library/BasePeCoffGetEntryPointLib/PeCoffGetEntryPoint.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/MdePkg/Library/BasePeCoffGetEntryPointLib/PeCoffGetEntryPoint.c b/MdePkg/Library/BasePeCoffGetEntryPointLib/PeCoffGetEntryPoint.c index 02ba839..cf10fc5 100644 --- a/MdePkg/Library/BasePeCoffGetEntryPointLib/PeCoffGetEntryPoint.c +++ b/MdePkg/Library/BasePeCoffGetEntryPointLib/PeCoffGetEntryPoint.c @@ -334,7 +334,7 @@ PeCoffSearchImageBase ( Pe32Data = 0;
- DEBUG_CODE (
+ DEBUG_CODE_BEGIN ();
EFI_IMAGE_DOS_HEADER *DosHdr;
EFI_IMAGE_OPTIONAL_HEADER_PTR_UNION Hdr;
@@ -376,7 +376,7 @@ PeCoffSearchImageBase ( //
Pe32Data -= PE_COFF_IMAGE_ALIGN_SIZE;
}
- );
+ DEBUG_CODE_END ();
return Pe32Data;
}
|