From c167e86d8712e8660b45bec04ff2991a3de48dca Mon Sep 17 00:00:00 2001 From: Alexander Boettcher Date: Tue, 19 Dec 2023 12:56:38 +0100 Subject: [PATCH] display/intel: translate ENOSPC into text message --- repos/pc/src/drivers/framebuffer/intel/pc/lx_user.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/repos/pc/src/drivers/framebuffer/intel/pc/lx_user.c b/repos/pc/src/drivers/framebuffer/intel/pc/lx_user.c index e9b6cf1fc5..3f725ff23f 100644 --- a/repos/pc/src/drivers/framebuffer/intel/pc/lx_user.c +++ b/repos/pc/src/drivers/framebuffer/intel/pc/lx_user.c @@ -600,8 +600,10 @@ static int fb_client_hotplug(struct drm_client_dev *client) /* triggers disablement of encoders attached to disconnected ports */ result = drm_client_modeset_commit(client); - if (result) - printk("%s: error on modeset commit %d\n", __func__, result); + if (result) { + printk("%s: error on modeset commit %d%s\n", __func__, result, + (result == -ENOSPC) ? " - insufficient amount of RAM for framebuffer" : ""); + } } /* notify Genode side */