From 7b610e018b3dcfd21fac243d2b9d5bec3227da5c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Ekl=C3=B6f?= Date: Wed, 18 Mar 2020 16:41:38 +0100 Subject: [PATCH] shm: log size of purged buffer --- shm.c | 5 +++-- 1 file 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);