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

Function PrintString

CloverEFI/OsxEfiLdr/Debug.c:120–148  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

118}
119
120VOID
121EFIAPI
122PrintString (
123 IN CONST CHAR8 *FormatString,
124 ...
125 )
126{
127 UINTN Index;
128 CHAR8 PrintBuffer[1000];
129 VA_LIST Marker;
130
131 VA_START (Marker, FormatString);
132 AsciiVSPrint (PrintBuffer, sizeof (PrintBuffer), FormatString, Marker);
133 VA_END (Marker);
134
135 for (Index = 0; PrintBuffer[Index] != 0; Index++) {
136 if (PrintBuffer[Index] == '\n') {
137 mCursor = (UINT8 *) (UINTN) (0xb8000 + (((((UINTN)mCursor - 0xb8000) + 160) / 160) * 160));
138 } else {
139 *mCursor = (UINT8) PrintBuffer[Index];
140 mCursor += 2;
141 }
142 }
143
144 //
145 // All information also output to serial port.
146 //
147 // SerialPortWrite ((UINT8 *) PrintBuffer, Index);
148}
149

Callers 3

SystemHangFunction · 0.70
PrintU32Base10Function · 0.70
PrintValueFunction · 0.70

Calls 1

AsciiVSPrintFunction · 0.50

Tested by

no test coverage detected