From 27fa7ff619058755d9e38dd45244d2e9a88353b8 Mon Sep 17 00:00:00 2001 From: Julian Bouzas Date: Thu, 28 May 2020 15:51:49 -0400 Subject: [PATCH] reserve-device: show info instead of warning when devices could not be acquired --- modules/module-device-activation/reserve-device.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/modules/module-device-activation/reserve-device.c b/modules/module-device-activation/reserve-device.c index 12b98edd..d220144a 100644 --- a/modules/module-device-activation/reserve-device.c +++ b/modules/module-device-activation/reserve-device.c @@ -43,14 +43,13 @@ static void on_reservation_acquired (GObject *obj, GAsyncResult *res, gpointer user_data) { WpReserveDevice *self = user_data; - WpDbusDeviceReservation *reserv = WP_DBUS_DEVICE_RESERVATION (obj); - g_autoptr (GError) error = NULL; + g_autoptr (GError) e = NULL; g_autoptr (WpProxy) device = NULL; g_autoptr (WpSpaPod) profile = NULL; /* Finish */ - if (!wp_dbus_device_reservation_async_finish (reserv, res, &error)) { - g_warning ("%s", error->message); + if (!wp_dbus_device_reservation_async_finish (self->reservation, res, &e)) { + wp_info_object (self, "could not own device: %s", e->message); return; }