shm: log errno error message too

This commit is contained in:
Daniel Eklöf 2020-03-10 18:00:39 +01:00
parent 39571a32c6
commit 1581143b0b
No known key found for this signature in database
GPG key ID: 5BBD4992C116573F

2
shm.c
View file

@ -144,7 +144,7 @@ shm_get_buffer(struct wl_shm *shm, int width, int height, unsigned long cookie)
mmapped = mmap(NULL, size, PROT_READ | PROT_WRITE, MAP_SHARED, pool_fd, 0);
if (mmapped == MAP_FAILED) {
LOG_ERR("failed to mmap SHM backing memory file");
LOG_ERRNO("failed to mmap SHM backing memory file");
goto err;
}