mirror of
https://github.com/CloverHackyColor/CloverBootloader.git
synced 2024-11-23 11:35:19 +01:00
avoid memset generation
Signed-off-by: Sergey Isakov <isakov-sl@bk.ru>
This commit is contained in:
parent
a239da8d61
commit
6236f85a79
@ -1748,9 +1748,11 @@ VOID DbgHeader(CONST CHAR8 *str)
|
||||
INTN len;
|
||||
UINTN end = AsciiSPrint(strLog, 50, "=== [ %a ] ", str);
|
||||
len = 50 - end;
|
||||
for (INTN i = 0; i < len; i++) {
|
||||
strLog[i + end] = '=';
|
||||
}
|
||||
// it causes memset generation ^(
|
||||
// for (INTN i = 0; i < len; i++) {
|
||||
// strLog[i + end] = '=';
|
||||
// }
|
||||
SetMem(&strLog[end], len , '=');
|
||||
strLog[49] = '\0';
|
||||
DebugLog (1, "%a\n", strLog);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user