mirror of
https://github.com/CloverHackyColor/CloverBootloader.git
synced 2024-11-24 11:45:27 +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;
|
INTN len;
|
||||||
UINTN end = AsciiSPrint(strLog, 50, "=== [ %a ] ", str);
|
UINTN end = AsciiSPrint(strLog, 50, "=== [ %a ] ", str);
|
||||||
len = 50 - end;
|
len = 50 - end;
|
||||||
for (INTN i = 0; i < len; i++) {
|
// it causes memset generation ^(
|
||||||
strLog[i + end] = '=';
|
// for (INTN i = 0; i < len; i++) {
|
||||||
}
|
// strLog[i + end] = '=';
|
||||||
|
// }
|
||||||
|
SetMem(&strLog[end], len , '=');
|
||||||
strLog[49] = '\0';
|
strLog[49] = '\0';
|
||||||
DebugLog (1, "%a\n", strLog);
|
DebugLog (1, "%a\n", strLog);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user