From ccd4703207652f851bc5573cc826917497731bb9 Mon Sep 17 00:00:00 2001 From: Kenny Levinsen Date: Mon, 19 Aug 2024 14:37:39 +0200 Subject: [PATCH] allocator/gbm: Log errno if gbm_bo_create fails --- render/allocator/gbm.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/render/allocator/gbm.c b/render/allocator/gbm.c index baa0fb6e..2e609b7a 100644 --- a/render/allocator/gbm.c +++ b/render/allocator/gbm.c @@ -106,14 +106,14 @@ static struct wlr_gbm_buffer *create_buffer(struct wlr_gbm_allocator *alloc, fallback_modifier = DRM_FORMAT_MOD_LINEAR; } else if (!wlr_drm_format_has(format, DRM_FORMAT_MOD_INVALID)) { // If the format doesn't accept an implicit modifier, bail out. - wlr_log(WLR_ERROR, "gbm_bo_create_with_modifiers failed"); + wlr_log_errno(WLR_ERROR, "gbm_bo_create_with_modifiers failed"); return NULL; } bo = gbm_bo_create(gbm_device, width, height, format->format, usage); has_modifier = false; } if (bo == NULL) { - wlr_log(WLR_ERROR, "gbm_bo_create failed"); + wlr_log_errno(WLR_ERROR, "gbm_bo_create failed"); return NULL; }