backend/drm: improve logs in drm_fb_create

Downgrade errors to DEBUG level, because drm_fb_create is used in
test_buffer, so errors aren't always fatal. Add ERROR logs at call
sites where a failure is fatal, to make it clear something wrong
happened.
This commit is contained in:
Simon Ser 2021-04-01 21:14:38 +02:00
parent 511e42be5e
commit 1ec97bdf4f
2 changed files with 16 additions and 16 deletions

View file

@ -474,6 +474,7 @@ static bool drm_connector_commit_buffer(struct wlr_output *output) {
}
if (!drm_fb_import(&plane->pending_fb, drm, buffer,
&crtc->primary->formats)) {
wlr_log(WLR_ERROR, "Failed to import buffer");
return false;
}
break;