[mutter] monitor-manager-kms: Fix compiler warning



commit f1850e0d617c9f40b06e6b168516334f55610117
Author: Florian Müllner <fmuellner gnome org>
Date:   Sat Oct 8 22:28:58 2016 +0200

    monitor-manager-kms: Fix compiler warning
    
    As the m format specifier doesn't consume any arguments, the number
    of varargs currently doesn't match the number of specifiers; the
    failed transform may be relevant, so include it in the message
    instead of removing the excess argument.

 src/backends/native/meta-monitor-manager-kms.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/backends/native/meta-monitor-manager-kms.c b/src/backends/native/meta-monitor-manager-kms.c
index 9daa010..75d417d 100644
--- a/src/backends/native/meta-monitor-manager-kms.c
+++ b/src/backends/native/meta-monitor-manager-kms.c
@@ -1363,7 +1363,7 @@ meta_monitor_manager_kms_apply_configuration (MetaMonitorManager *manager,
                                     crtc_kms->rotation_prop_id,
                                     crtc_kms->rotation_map[hw_transform]) != 0)
         {
-          g_warning ("Failed to apply DRM plane transform: %m", hw_transform);
+          g_warning ("Failed to apply DRM plane transform %d: %m", hw_transform);
 
           /* Blacklist this HW transform, we want to fallback to our
            * fallbacks in this case.


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