mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-03-07 04:34:03 -05:00
shm: log size of purged buffer
This commit is contained in:
parent
0419156494
commit
7b610e018b
1 changed files with 3 additions and 2 deletions
5
shm.c
5
shm.c
|
|
@ -56,8 +56,9 @@ shm_get_buffer(struct wl_shm *shm, int width, int height, unsigned long cookie)
|
||||||
|
|
||||||
assert(!it->item.busy);
|
assert(!it->item.busy);
|
||||||
|
|
||||||
LOG_DBG("cookie=%lx: purging buffer %p (width=%d, height=%d)",
|
LOG_DBG("cookie=%lx: purging buffer %p (width=%d, height=%d): %zu KB",
|
||||||
cookie, &it->item, it->item.width, it->item.height);
|
cookie, &it->item, it->item.width, it->item.height,
|
||||||
|
it->item.size / 1024);
|
||||||
|
|
||||||
buffer_destroy(&it->item);
|
buffer_destroy(&it->item);
|
||||||
tll_remove(buffers, it);
|
tll_remove(buffers, it);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue