[edk2] [staging/edk2-test Patch 04/10] MsUnitTestPkg/Include: Remove use of variadic macros

Kinney, Michael D posted 10 patches 7 years ago
[edk2] [staging/edk2-test Patch 04/10] MsUnitTestPkg/Include: Remove use of variadic macros
Posted by Kinney, Michael D 7 years ago
Remove the use of Variadic macros are not supported by
all compilers.

Cc: Sean Brogan <sean.brogan@microsoft.com>
Cc: Liming Gao <liming.gao@intel.com>
Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Michael D Kinney <michael.d.kinney@intel.com>
---
 MsUnitTestPkg/Include/Library/UnitTestLogLib.h | 13 -------------
 1 file changed, 13 deletions(-)

diff --git a/MsUnitTestPkg/Include/Library/UnitTestLogLib.h b/MsUnitTestPkg/Include/Library/UnitTestLogLib.h
index 83904d1bcd..b92044c7ef 100644
--- a/MsUnitTestPkg/Include/Library/UnitTestLogLib.h
+++ b/MsUnitTestPkg/Include/Library/UnitTestLogLib.h
@@ -39,19 +39,6 @@ ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
 ///================================================================================================
 ///================================================================================================
 
-
-// IMPORTANT NOTE: These macros should ONLY be used in a Unit Test.
-//                 They will consume the Framework Handle and update the Framework->CurrentTest.
-
-#define UT_LOG_ERROR(Format, ...)              \
-  UnitTestLog( Framework, DEBUG_ERROR, Format, __VA_ARGS__ );
-#define UT_LOG_WARNING(Format, ...)            \
-  UnitTestLog( Framework, DEBUG_WARN, Format, __VA_ARGS__ );
-#define UT_LOG_INFO(Format, ...)               \
-  UnitTestLog( Framework, DEBUG_INFO, Format, __VA_ARGS__ );
-#define UT_LOG_VERBOSE(Format, ...)            \
-  UnitTestLog( Framework, DEBUG_VERBOSE, Format, __VA_ARGS__ );
-
 VOID
 EFIAPI
 UnitTestLog (
-- 
2.14.2.windows.3

_______________________________________________
edk2-devel mailing list
edk2-devel@lists.01.org
https://lists.01.org/mailman/listinfo/edk2-devel