From 8d0597e3dbc9b6ab9fb9413be1d72bb5cec653cd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?F=C3=A9lix=20Poisot?= Date: Wed, 22 Apr 2026 17:25:02 +0000 Subject: [PATCH] render/dmabuf: lower log level for sync file import/export failure On platforms that lack the corresponding ioctl, this particular error is expected and recoverable --- render/dmabuf_linux.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/render/dmabuf_linux.c b/render/dmabuf_linux.c index 53fb909bc..b28f22beb 100644 --- a/render/dmabuf_linux.c +++ b/render/dmabuf_linux.c @@ -56,7 +56,8 @@ bool dmabuf_import_sync_file(int dmabuf_fd, uint32_t flags, int sync_file_fd) { .fd = sync_file_fd, }; if (drmIoctl(dmabuf_fd, DMA_BUF_IOCTL_IMPORT_SYNC_FILE, &data) != 0) { - wlr_log_errno(WLR_ERROR, "drmIoctl(IMPORT_SYNC_FILE) failed"); + enum wlr_log_importance importance = errno == ENOTTY ? WLR_DEBUG : WLR_ERROR; + wlr_log_errno(importance, "drmIoctl(IMPORT_SYNC_FILE) failed"); return false; } return true; @@ -68,7 +69,8 @@ int dmabuf_export_sync_file(int dmabuf_fd, uint32_t flags) { .fd = -1, }; if (drmIoctl(dmabuf_fd, DMA_BUF_IOCTL_EXPORT_SYNC_FILE, &data) != 0) { - wlr_log_errno(WLR_ERROR, "drmIoctl(EXPORT_SYNC_FILE) failed"); + enum wlr_log_importance importance = errno == ENOTTY ? WLR_DEBUG : WLR_ERROR; + wlr_log_errno(importance, "drmIoctl(EXPORT_SYNC_FILE) failed"); return -1; } return data.fd;