summaryrefslogtreecommitdiff
path: root/OvmfPkg/Library/MemDebugLogLib/MemDebugLogNull.c
diff options
context:
space:
mode:
Diffstat (limited to 'OvmfPkg/Library/MemDebugLogLib/MemDebugLogNull.c')
-rw-r--r--OvmfPkg/Library/MemDebugLogLib/MemDebugLogNull.c40
1 files changed, 40 insertions, 0 deletions
diff --git a/OvmfPkg/Library/MemDebugLogLib/MemDebugLogNull.c b/OvmfPkg/Library/MemDebugLogLib/MemDebugLogNull.c
new file mode 100644
index 0000000..59bb7c8
--- /dev/null
+++ b/OvmfPkg/Library/MemDebugLogLib/MemDebugLogNull.c
@@ -0,0 +1,40 @@
+/** @file
+ *
+ Memory Debug Log Library - Null.
+
+ Copyright (C) 2025, Oracle and/or its affiliates.
+
+ SPDX-License-Identifier: BSD-2-Clause-Patent
+
+**/
+
+#include <Library/MemDebugLogLib.h>
+
+EFI_STATUS
+EFIAPI
+MemDebugLogWrite (
+ IN CHAR8 *Buffer,
+ IN UINTN Length
+ )
+{
+ // Null Instance - NOP
+ return EFI_SUCCESS;
+}
+
+UINT32
+EFIAPI
+MemDebugLogPages (
+ VOID
+ )
+{
+ return 0;
+}
+
+BOOLEAN
+EFIAPI
+MemDebugLogEnabled (
+ VOID
+ )
+{
+ return FALSE;
+}