mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2025-12-16 08:56:26 -05:00
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:
parent
511e42be5e
commit
1ec97bdf4f
2 changed files with 16 additions and 16 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue