From f2960e19905c0d618a76e8cdc83906f8ea418e57 Mon Sep 17 00:00:00 2001 From: YaoBing Xiao Date: Tue, 10 Sep 2024 21:51:26 +0800 Subject: [PATCH] wlr_linux_dmabuf_v1: log plane index in error messages for dma-buf Signed-off-by: YaoBing Xiao --- types/wlr_linux_dmabuf_v1.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/types/wlr_linux_dmabuf_v1.c b/types/wlr_linux_dmabuf_v1.c index 73a1d8f0..77fe76ce 100644 --- a/types/wlr_linux_dmabuf_v1.c +++ b/types/wlr_linux_dmabuf_v1.c @@ -213,11 +213,11 @@ static bool check_import_dmabuf(struct wlr_dmabuf_attributes *attribs, void *dat for (int i = 0; i < attribs->n_planes; i++) { uint32_t handle = 0; if (drmPrimeFDToHandle(linux_dmabuf->main_device_fd, attribs->fd[i], &handle) != 0) { - wlr_log_errno(WLR_DEBUG, "Failed to import DMA-BUF FD"); + wlr_log_errno(WLR_ERROR, "Failed to import DMA-BUF FD for plane %d", i); return false; } if (drmCloseBufferHandle(linux_dmabuf->main_device_fd, handle) != 0) { - wlr_log_errno(WLR_ERROR, "Failed to close buffer handle"); + wlr_log_errno(WLR_ERROR, "Failed to close buffer handle for plane %d", i); return false; } }