shm: log size of purged buffer

This commit is contained in:
Daniel Eklöf 2020-03-18 16:41:38 +01:00
parent 0419156494
commit 7b610e018b
No known key found for this signature in database
GPG key ID: 5BBD4992C116573F

5
shm.c
View file

@ -56,8 +56,9 @@ shm_get_buffer(struct wl_shm *shm, int width, int height, unsigned long cookie)
assert(!it->item.busy);
LOG_DBG("cookie=%lx: purging buffer %p (width=%d, height=%d)",
cookie, &it->item, it->item.width, it->item.height);
LOG_DBG("cookie=%lx: purging buffer %p (width=%d, height=%d): %zu KB",
cookie, &it->item, it->item.width, it->item.height,
it->item.size / 1024);
buffer_destroy(&it->item);
tll_remove(buffers, it);