shm: log 'size' when failing to fallocate()

This commit is contained in:
Daniel Eklöf 2020-03-01 12:19:28 +01:00
parent fff480e584
commit 9d834bb43d
No known key found for this signature in database
GPG key ID: 5BBD4992C116573F

2
shm.c
View file

@ -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) {