[mutter] monitor-config-manager: Only report Hz to 3 decimal places



commit 8e5f5fbe547ff632de1c15037a2d1a439ece8f12
Author: Daniel van Vugt <daniel van vugt canonical com>
Date:   Wed Jun 15 18:13:50 2022 +0800

    monitor-config-manager: Only report Hz to 3 decimal places
    
    Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/2465>

 src/backends/meta-monitor-config-manager.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/src/backends/meta-monitor-config-manager.c b/src/backends/meta-monitor-config-manager.c
index 575810b3f9..e782f1444e 100644
--- a/src/backends/meta-monitor-config-manager.c
+++ b/src/backends/meta-monitor-config-manager.c
@@ -324,7 +324,7 @@ assign_monitor_crtcs (MetaMonitorManager       *manager,
   if (!monitor_mode)
     {
       g_set_error (error, G_IO_ERROR, G_IO_ERROR_FAILED,
-                   "Invalid mode %dx%d (%f) for monitor '%s %s'",
+                   "Invalid mode %dx%d (%.3f) for monitor '%s %s'",
                    monitor_mode_spec->width, monitor_mode_spec->height,
                    monitor_mode_spec->refresh_rate,
                    monitor_spec->vendor, monitor_spec->product);


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]