diff --git a/AdvLoggerPkg/Test/Mock/Include/GoogleTest/Ppi/MockAdvancedLogger.h b/AdvLoggerPkg/Test/Mock/Include/GoogleTest/Ppi/MockAdvancedLogger.h index 709fcf3a3f..a694ec5abd 100644 --- a/AdvLoggerPkg/Test/Mock/Include/GoogleTest/Ppi/MockAdvancedLogger.h +++ b/AdvLoggerPkg/Test/Mock/Include/GoogleTest/Ppi/MockAdvancedLogger.h @@ -27,14 +27,6 @@ struct MockAdvancedLoggerPpi { IN UINTN NumberOfBytes) ); - MOCK_FUNCTION_DECLARATION ( - VOID, - gAL_AdvancedLoggerPrintPpi, - (IN UINTN ErrorLevel, - IN CONST CHAR8 *Format, - IN VA_LIST VaListMarker) - ); - MOCK_FUNCTION_DECLARATION ( VOID, gAL_AdvancedLoggerAssertPpi, @@ -51,9 +43,23 @@ struct MockAdvancedLoggerPpi { // MOCK_INTERFACE_DEFINITION (MockAdvancedLoggerPpi); MOCK_FUNCTION_DEFINITION (MockAdvancedLoggerPpi, gAL_AdvancedLoggerWritePpi, 3, EFIAPI); -MOCK_FUNCTION_DEFINITION (MockAdvancedLoggerPpi, gAL_AdvancedLoggerPrintPpi, 3, EFIAPI); +// MOCK_FUNCTION_DEFINITION (MockAdvancedLoggerPpi, gAL_AdvancedLoggerPrintPpi, 3, EFIAPI); MOCK_FUNCTION_DEFINITION (MockAdvancedLoggerPpi, gAL_AdvancedLoggerAssertPpi, 3, EFIAPI); +// Mock function definition for gAL_AdvancedLoggerPrintPpi to use C standard VA_LIST +extern "C" { + VOID + EFIAPI + gAL_AdvancedLoggerPrintPpi ( + IN UINTN ErrorLevel, + IN CONST CHAR8 *Format, + IN VA_LIST VaListMarker + ) + { + return; + } +} + ADVANCED_LOGGER_PPI advancedLoggerPpiInstance = { ADVANCED_LOGGER_PPI_SIGNATURE, // UINT32 ADVANCED_LOGGER_PPI_VERSION, // UINT32