From 9d834bb43d349729568cc15de371535b3f78b33b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Ekl=C3=B6f?= Date: Sun, 1 Mar 2020 12:19:28 +0100 Subject: [PATCH] shm: log 'size' when failing to fallocate() --- shm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) {