backend-drm: print failing output in error message

Print the name of the failing output to help debugging.

Signed-off-by: Michael Tretter <m.tretter@pengutronix.de>
This commit is contained in:
Michael Tretter 2023-05-22 16:15:45 +02:00 committed by Daniel Stone
parent 72e2da24f9
commit 98e398e78b
1 changed files with 2 additions and 1 deletions

View File

@ -2089,7 +2089,8 @@ drm_backend_output_configure(struct weston_output *output,
free(s);
if (api->set_mode(output, mode, modeline) < 0) {
weston_log("Cannot configure an output using weston_drm_output_api.\n");
weston_log("Cannot configure output \"%s\" using weston_drm_output_api.\n",
output->name);
free(modeline);
return -1;
}