clutter/stage-cogl: Use portable formatting for 64-bit integers

On 64-bit systems int64_t is %ld but on 32-bit systems it is %lld.

https://gitlab.gnome.org/GNOME/mutter/merge_requests/778
This commit is contained in:
Daniel van Vugt 2019-09-06 17:42:19 +08:00 committed by Jonas Ådahl
parent 7811865e84
commit 0b19078b2b

View File

@ -204,7 +204,7 @@ clutter_stage_cogl_schedule_update (ClutterStageWindow *stage_window,
if (max_render_time_allowed <= 0) if (max_render_time_allowed <= 0)
{ {
g_warning ("Unsupported monitor refresh rate detected. " g_warning ("Unsupported monitor refresh rate detected. "
"(Refresh rate: %.3f, refresh interval: %ld)", "(Refresh rate: %.3f, refresh interval: %" G_GINT64_FORMAT ")",
refresh_rate, refresh_rate,
refresh_interval); refresh_interval);
stage_cogl->update_time = now; stage_cogl->update_time = now;