diff options
| author | Daniel Eklöf <daniel@ekloef.se> | 2020-03-18 15:41:38 +0000 |
|---|---|---|
| committer | Daniel Eklöf <daniel@ekloef.se> | 2020-03-18 15:41:38 +0000 |
| commit | 7b610e018b3dcfd21fac243d2b9d5bec3227da5c (patch) | |
| tree | 2663139ef29f80e1adbb730c64ff569e25fd0a06 | |
| parent | search: replace hard-coded key bindings with "user configurable" ones (diff) | |
shm: log size of purged buffer
| -rw-r--r-- | shm.c | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -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); |
