aboutsummaryrefslogtreecommitdiff
path: root/shm.c
diff options
context:
space:
mode:
authorDaniel Eklöf <daniel@ekloef.se>2020-03-18 15:41:38 +0000
committerDaniel Eklöf <daniel@ekloef.se>2020-03-18 15:41:38 +0000
commit7b610e018b3dcfd21fac243d2b9d5bec3227da5c (patch)
tree2663139ef29f80e1adbb730c64ff569e25fd0a06 /shm.c
parentsearch: replace hard-coded key bindings with "user configurable" ones (diff)
shm: log size of purged buffer
Diffstat (limited to 'shm.c')
-rw-r--r--shm.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/shm.c b/shm.c
index a33b4334..a4fc8797 100644
--- a/shm.c
+++ b/shm.c
@@ -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);