display/intel: translate ENOSPC into text message

This commit is contained in:
Alexander Boettcher 2023-12-19 12:56:38 +01:00 committed by Christian Helmuth
parent 4a2319a4d6
commit c167e86d87

View File

@ -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 */