aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Eklöf <daniel@ekloef.se>2020-03-01 11:19:28 +0000
committerDaniel Eklöf <daniel@ekloef.se>2020-03-01 11:19:28 +0000
commit9d834bb43d349729568cc15de371535b3f78b33b (patch)
tree39b6599dbd3eff19cad691243278749043882fa5
parentinput: use xdg_toplevel_resize_edge enum type (diff)
shm: log 'size' when failing to fallocate()
-rw-r--r--shm.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/shm.c b/shm.c
index ab717bd0..56395fab 100644
--- a/shm.c
+++ b/shm.c
@@ -133,7 +133,7 @@ shm_get_buffer(struct wl_shm *shm, int width, int height, unsigned long cookie)
if (!failure_logged) {
failure_logged = true;
- LOG_ERRNO_P("failed to fallocate", err);
+ LOG_ERRNO_P("failed to fallocate %zu bytes", err, size);
}
if (ftruncate(pool_fd, size) == -1) {