aboutsummaryrefslogtreecommitdiff
path: root/backend
diff options
context:
space:
mode:
authorSimon Ser <contact@emersion.fr>2022-11-10 12:28:34 +0100
committerSimon Ser <contact@emersion.fr>2022-11-14 17:39:39 +0000
commitb3da33116ea9fb3ef948ae72425534b43c217579 (patch)
tree0308583f5b34d5d47a3a765ed2f2b857d4e1af35 /backend
parentc8a5dfcc878b855253d7b5fa2691c850c8430ff7 (diff)
backend/drm: log refresh rate in Hz
Diffstat (limited to 'backend')
-rw-r--r--backend/drm/drm.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/backend/drm/drm.c b/backend/drm/drm.c
index 04994c68..f8f58b36 100644
--- a/backend/drm/drm.c
+++ b/backend/drm/drm.c
@@ -1302,9 +1302,9 @@ static void connect_drm_connector(struct wlr_drm_connector *wlr_conn,
wlr_conn->crtc->mode_id = mode_id;
}
- wlr_log(WLR_INFO, " %"PRId32"x%"PRId32"@%"PRId32" %s",
+ wlr_log(WLR_INFO, " %"PRId32"x%"PRId32" @ %.3f Hz %s",
mode->wlr_mode.width, mode->wlr_mode.height,
- mode->wlr_mode.refresh,
+ (float)mode->wlr_mode.refresh / 1000,
mode->wlr_mode.preferred ? "(preferred)" : "");
wl_list_insert(wlr_conn->output.modes.prev, &mode->wlr_mode.link);