Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 737e786a authored by Mathias Agopian's avatar Mathias Agopian
Browse files

Allways dump the list of allocated buffers when an allocation fails.

Hopefully this will help us understand cases of failures such as [2148405]
parent a83302cb
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -102,6 +102,10 @@ status_t BufferAllocator::alloc(uint32_t w, uint32_t h, PixelFormat format,
        rec.vaddr = 0;
        rec.size = h * stride[0] * bytesPerPixel(format);
        list.add(*handle, rec);
    } else {
        String8 s;
        dump(s);
        LOGD("%s", s.string());
    }

    return err;