avoid memset generation

Signed-off-by: Sergey Isakov <isakov-sl@bk.ru>
This commit is contained in:
Sergey Isakov 2020-03-16 10:31:59 +03:00
parent a239da8d61
commit 6236f85a79

View File

@ -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);
}