Add debug info to ENOMEMs

This commit is contained in:
Eladash 2024-02-15 22:29:45 +02:00 committed by Elad.Ash
parent 989b353fbd
commit 27ea25a999
3 changed files with 4 additions and 3 deletions

View file

@ -74,6 +74,7 @@ CellError lv2_memory::on_id_create()
{
if (!exists && !ct->take(size))
{
sys_mmapper.error("lv2_memory::on_id_create(): Cannot allocate 0x%x bytes (0x%x available)", size, ct->size - ct->used);
return CELL_ENOMEM;
}