mirror of
https://github.com/CloverHackyColor/CloverBootloader.git
synced 2024-12-21 15:57:42 +01:00
7c0aa811ec
Signed-off-by: Sergey Isakov <isakov-sl@bk.ru>
32 lines
526 B
C
32 lines
526 B
C
/** @file
|
|
|
|
Log to memory buffer.
|
|
|
|
By dmazar, 26/09/2012
|
|
|
|
**/
|
|
|
|
#ifndef __DMP_MEM_LOG_H__
|
|
#define __DMP_MEM_LOG_H__
|
|
|
|
|
|
/** Memory log buffer and sizes. */
|
|
typedef struct {
|
|
CHAR8 *Buffer;
|
|
UINTN Size;
|
|
UINTN BufferSize;
|
|
} MEM_LOG;
|
|
|
|
|
|
/** Prints log messages to memory buffer. */
|
|
EFI_STATUS
|
|
EFIAPI
|
|
MemLogPrint(IN MEM_LOG *MemLog, IN CHAR8 *Format, ...);
|
|
|
|
/** Saves log to Log.txt in the same dir as driver. */
|
|
EFI_STATUS
|
|
MemLogSave(IN MEM_LOG *MemLog);
|
|
|
|
|
|
#endif // __DMP_MEM_LOG_H__
|