audk/MdePkg/Include
Laszlo Ersek 08bcaf20b1 MdePkg/DebugLib.h: add ASSERT_RETURN_ERROR()
ASSERT_EFI_ERROR() cannot be used in BASE type modules because
- the replacement text calls EFI_ERROR(),
- EFI_ERROR() is defined in "MdePkg/Include/Uefi/UefiBaseType.h",
- the inclusion of "UefiBaseType.h" is not required for BASE type modules.

While

  ASSERT (!RETURN_ERROR (StatusParameter))

would be a functional statement in BASE type modules, it would be less
convenient and less informative: ASSERT_EFI_ERROR() prints the actual
StatusParameter.

Hence add ASSERT_RETURN_ERROR(), paralleling ASSERT_EFI_ERROR(). Copy the
original macro definition and update it as follows:
- replace EFI with RETURN,
- wrap overlong lines in the comment block and in the code,
- EFI_D_ERROR is deprecated, so employ DEBUG_ERROR instead.

Cc: Liming Gao <liming.gao@intel.com>
Cc: Michael D Kinney <michael.d.kinney@intel.com>
Ref: https://bugzilla.tianocore.org/show_bug.cgi?id=166
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Laszlo Ersek <lersek@redhat.com>
Reviewed-by: Michael Kinney <michael.d.kinney@intel.com>
Tested-by: Ard Biesheuvel <ard.biesheuvel@linaro.org> # RVCT
Reviewed-by: Jordan Justen <jordan.l.justen@intel.com>
2016-10-25 10:46:07 +02:00
..
AArch64 MdePkg: Fix some typing errors in the header files 2016-10-07 18:09:09 -07:00
Arm MdePkg: Fix some typing errors in the header files 2016-10-07 18:09:09 -07:00
Ebc MdePkg Base.h: Always define ASM_PFX 2014-09-01 17:23:10 +00:00
Guid MdePkg/GraphicsInfoHob: Add GraphicsDeviceInfo HOB GUID and structure 2016-10-12 10:42:15 +08:00
Ia32 MdePkg: Fix some typing errors in the header files 2016-10-07 18:09:09 -07:00
IndustryStandard MdePkg: Fix typos in comments 2016-10-21 16:40:51 +08:00
Ipf MdePkg: Fix some typing errors in the header files 2016-10-07 18:09:09 -07:00
Library MdePkg/DebugLib.h: add ASSERT_RETURN_ERROR() 2016-10-25 10:46:07 +02:00
Pi MdePkg: Fix some typing errors in the header files 2016-10-07 18:09:09 -07:00
Ppi MdePkg: Follow PI1.4a update EFI_SEC_PLATFORM_INFORMATION2 description 2016-06-02 16:34:53 +08:00
Protocol MdePkg: Fix typos in comments 2016-10-21 16:40:51 +08:00
Uefi MdePkg: Fix some typing errors in the header files 2016-10-07 18:09:09 -07:00
X64 MdePkg: Fix some typing errors in the header files 2016-10-07 18:09:09 -07:00
Base.h MdePkg: Fix some typing errors in the header files 2016-10-07 18:09:09 -07:00
PiDxe.h Update the copyright notice format 2010-04-23 15:46:20 +00:00
PiPei.h Update the copyright notice format 2010-04-23 15:46:20 +00:00
PiSmm.h Add definitions for the UEFI ACPI Data Table defined in the UEFI spec and the SMM Communication ACPI Table defined in the PI spec. 2011-02-22 10:05:06 +00:00
Uefi.h Update the copyright notice format 2010-04-23 15:46:20 +00:00