Add missing memory allocation in printf

Change-Id: I452b676612b54f70106e7ef1bcb5ce2baf7b3ffc
Tento commit je obsažen v:
German Andryeyev
2020-05-15 16:17:14 -04:00
rodič 966448c53b
revize f56a052243
+1 -1
Zobrazit soubor
@@ -47,7 +47,7 @@ bool PrintfDbg::allocate(bool realloc) {
// Double the buffer size if it's not big enough
dev().hostFree(dbgBuffer_, dbgBuffer_size_);
dbgBuffer_size_ = dbgBuffer_size_ << 1;
dbgBuffer_ = reinterpret_cast<address>(dbgBuffer_size_, sizeof(void*));
dbgBuffer_ = reinterpret_cast<address>(dev().hostAlloc(dbgBuffer_size_, sizeof(void*)));
}
return (nullptr != dbgBuffer_) ? true : false;