MCPcopy Create free account
hub / github.com/CloverHackyColor/CloverBootloader / PrintString

Function PrintString

CloverEFI/OsxDxeIpl/Debug.c:86–114  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

84
85
86VOID
87EFIAPI
88PrintString (
89 IN CONST CHAR8 *FormatString,
90 ...
91 )
92{
93 UINTN Index;
94 CHAR8 PrintBuffer[1000];
95 VA_LIST Marker;
96
97 VA_START (Marker, FormatString);
98 AsciiVSPrint (PrintBuffer, sizeof (PrintBuffer), FormatString, Marker);
99 VA_END (Marker);
100
101 for (Index = 0; PrintBuffer[Index] != 0; Index++) {
102 if (PrintBuffer[Index] == '\n') {
103 mCursor = (UINT8 *) (UINTN) (0xb8000 + (((((UINTN)mCursor - 0xb8000) + 160) / 160) * 160));
104 } else {
105 *mCursor = (UINT8) PrintBuffer[Index];
106 mCursor += 2;
107 }
108 }
109
110 //
111 // All information also output to serial port.
112 //
113 //SerialPortWrite ((UINT8 *) PrintBuffer, Index);
114}
115

Callers 1

PrintValueFunction · 0.70

Calls 1

AsciiVSPrintFunction · 0.50

Tested by

no test coverage detected