mirror of
https://github.com/hyprwm/wlroots-hyprland.git
synced 2024-11-22 04:45:58 +01:00
backend/drm: print stringified connector status in realloc_crtcs()
The raw enum value wasn't informative enough. It's not trivial to tell whether 0 means connected or disconnected. Drop the status from the state after realloc, since the exact same information is printed right above.
This commit is contained in:
parent
f361efe965
commit
e59c3602f7
1 changed files with 4 additions and 4 deletions
|
@ -1059,9 +1059,9 @@ static void realloc_crtcs(struct wlr_drm_backend *drm,
|
|||
// connector the user wants to enable
|
||||
bool want_crtc = conn == want_conn || conn->output.enabled;
|
||||
|
||||
wlr_log(WLR_DEBUG, " '%s' crtc=%d status=%d want_crtc=%d",
|
||||
wlr_log(WLR_DEBUG, " '%s': crtc=%d status=%s want_crtc=%d",
|
||||
conn->name, conn->crtc ? (int)(conn->crtc - drm->crtcs) : -1,
|
||||
conn->status, want_crtc);
|
||||
drm_connector_status_str(conn->status), want_crtc);
|
||||
|
||||
if (conn->status == DRM_MODE_CONNECTED && want_crtc) {
|
||||
connector_constraints[i] = conn->possible_crtcs;
|
||||
|
@ -1108,8 +1108,8 @@ static void realloc_crtcs(struct wlr_drm_backend *drm,
|
|||
struct wlr_drm_connector *conn = connectors[i];
|
||||
bool prev_enabled = conn->crtc;
|
||||
|
||||
wlr_log(WLR_DEBUG, " '%s' crtc=%zd status=%d",
|
||||
conn->name, connector_match[i], conn->status);
|
||||
wlr_log(WLR_DEBUG, " '%s': crtc=%zd",
|
||||
conn->name, connector_match[i]);
|
||||
|
||||
// We don't need to change anything.
|
||||
if (prev_enabled && connector_match[i] == conn->crtc - drm->crtcs) {
|
||||
|
|
Loading…
Reference in a new issue