[gnome-software] trivial: Use the unique ID in the state debug messages



commit 814555c60d8561506ff136c223803bada729d1c6
Author: Richard Hughes <richard hughsie com>
Date:   Tue Nov 29 16:15:43 2016 +0000

    trivial: Use the unique ID in the state debug messages

 src/gs-app.c |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)
---
diff --git a/src/gs-app.c b/src/gs-app.c
index d37cb83..b38f961 100644
--- a/src/gs-app.c
+++ b/src/gs-app.c
@@ -785,7 +785,7 @@ gs_app_set_state_internal (GsApp *app, AsAppState state)
        /* this state change was unexpected */
        if (!state_change_ok) {
                g_warning ("State change on %s from %s to %s is not OK",
-                          app->id,
+                          gs_app_get_unique_id (app),
                           as_app_state_to_string (app->state),
                           as_app_state_to_string (state));
                return FALSE;
@@ -807,7 +807,8 @@ gs_app_set_state_internal (GsApp *app, AsAppState state)
        default:
                if (app->state_recover != state) {
                        g_debug ("%s non-transient state now %s",
-                                app->id, as_app_state_to_string (state));
+                                gs_app_get_unique_id (app),
+                                as_app_state_to_string (state));
                        app->state_recover = state;
                }
                break;


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