forked from xt-sys/exectos
Implement BlDbgPrint() for printing debug messages to the serial console and rename loader entry point
This commit is contained in:
@@ -9,6 +9,35 @@
|
||||
#include <xtbl.h>
|
||||
|
||||
|
||||
/**
|
||||
* This routine formats the input string and prints it out to the serial console.
|
||||
*
|
||||
* @param Format
|
||||
* The formatted string that is to be written to the output.
|
||||
*
|
||||
* @param ...
|
||||
* Depending on the format string, this routine might expect a sequence of additional arguments.
|
||||
*
|
||||
* @return This routine does not return any value.
|
||||
*
|
||||
* @since XT 1.0
|
||||
*/
|
||||
VOID
|
||||
BlDbgPrint(IN PUINT16 Format,
|
||||
IN ...)
|
||||
{
|
||||
VA_LIST Arguments;
|
||||
|
||||
/* Initialise the va_list */
|
||||
VA_START(Arguments, Format);
|
||||
|
||||
/* Format and print the string to the serial console */
|
||||
BlStringPrint(BlComPortPutChar, Format, Arguments);
|
||||
|
||||
/* Clean up the va_list */
|
||||
VA_END(Arguments);
|
||||
}
|
||||
|
||||
/**
|
||||
* This routine formats the input string and prints it out to the stdout and serial console.
|
||||
*
|
||||
@@ -22,7 +51,7 @@
|
||||
*
|
||||
* @since XT 1.0
|
||||
*
|
||||
* @todo Check if GOP is active and use it instead of default conout protocol; duplicate output to serial console.
|
||||
* @todo Check if GOP is active and use it instead of default conout protocol
|
||||
*/
|
||||
VOID
|
||||
BlEfiPrint(IN PUINT16 Format,
|
||||
@@ -36,6 +65,9 @@ BlEfiPrint(IN PUINT16 Format,
|
||||
/* Format and print the string to the stdout */
|
||||
BlStringPrint(BlConsolePutChar, Format, Arguments);
|
||||
|
||||
/* Format and print the string to the serial console */
|
||||
BlStringPrint(BlComPortPutChar, Format, Arguments);
|
||||
|
||||
/* Clean up the va_list */
|
||||
VA_END(Arguments);
|
||||
}
|
||||
|
Reference in New Issue
Block a user