[gnome-settings-daemon] color: Fix up a critical warning



commit 858596b29451317b1738c1dfd7e02eaa25b6bfe2
Author: Richard Hughes <richard hughsie com>
Date:   Wed Feb 22 12:25:25 2012 +0000

    color: Fix up a critical warning
    
    Do not try to access a device ID when the device does not exist.
    
    Resolves: https://bugzilla.gnome.org/show_bug.cgi?id=670599

 plugins/color/gsd-color-manager.c |    6 ++----
 1 files changed, 2 insertions(+), 4 deletions(-)
---
diff --git a/plugins/color/gsd-color-manager.c b/plugins/color/gsd-color-manager.c
index 59fbca4..b4b0fab 100644
--- a/plugins/color/gsd-color-manager.c
+++ b/plugins/color/gsd-color-manager.c
@@ -353,8 +353,7 @@ gcm_session_profile_assign_find_device_cb (GObject *object,
                                                res,
                                                &error);
         if (device == NULL) {
-                g_warning ("not found device %s which should have been added: %s",
-                           cd_device_get_id (device),
+                g_warning ("not found device which should have been added: %s",
                            error->message);
                 g_error_free (error);
                 gcm_session_async_helper_free (helper);
@@ -1520,8 +1519,7 @@ gcm_session_profile_gamma_find_device_cb (GObject *object,
                                                            res,
                                                            &error);
         if (device == NULL) {
-                g_warning ("not found device %s: %s",
-                           cd_device_get_id (device),
+                g_warning ("could not find device: %s",
                            error->message);
                 g_error_free (error);
                 goto out;



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