From 3b2b7d9be5b365c019487aed98b424d8c06aa7ae Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Thu, 25 Jul 2024 18:40:25 +0530 Subject: [PATCH] DRYer --- kitty/child-monitor.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/kitty/child-monitor.c b/kitty/child-monitor.c index f0b0ceb5c..c9e7983ec 100644 --- a/kitty/child-monitor.c +++ b/kitty/child-monitor.c @@ -821,9 +821,9 @@ no_render_frame_received_recently(OSWindow *w, monotonic_t now, monotonic_t max_ bool ans = now - w->last_render_frame_received_at > max_wait; if (ans && global_state.debug_rendering) { if (global_state.is_wayland) { - fprintf(stderr, "[%f] No render frame received in %.2f seconds", monotonic_t_to_s_double(now), monotonic_t_to_s_double(max_wait)); + log_error("No render frame received in %.2f seconds", monotonic_t_to_s_double(max_wait)); } else { - fprintf(stderr, "[%f] No render frame received in %.2f seconds, re-requesting", monotonic_t_to_s_double(now), monotonic_t_to_s_double(max_wait)); + log_error("No render frame received in %.2f seconds, re-requesting", monotonic_t_to_s_double(max_wait)); } } return ans;