diff options
author | Aleksander Morgado <aleksandermj@chromium.org> | 2022-09-12 12:15:41 +0000 |
---|---|---|
committer | Aleksander Morgado <aleksandermj@chromium.org> | 2022-11-04 13:12:57 +0000 |
commit | 9fe16af157a8109d44b02a319d65cc970d0c4133 (patch) | |
tree | f123c66beba89c0b6f83eb739bc8deaeaff12f09 /src/mm-iface-modem.c | |
parent | 73696cab1aa9109ad8d8f0e95810c9b0e952711e (diff) |
iface-modem: improve logging of user request to get cell info
Diffstat (limited to 'src/mm-iface-modem.c')
-rw-r--r-- | src/mm-iface-modem.c | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/src/mm-iface-modem.c b/src/mm-iface-modem.c index d2f11e20..44996ea3 100644 --- a/src/mm-iface-modem.c +++ b/src/mm-iface-modem.c @@ -1345,7 +1345,7 @@ handle_get_cell_info_context_free (HandleGetCellInfoContext *ctx) g_object_unref (ctx->skeleton); g_object_unref (ctx->invocation); g_object_unref (ctx->self); - g_free (ctx); + g_slice_free (HandleGetCellInfoContext, ctx); } static GVariant * @@ -1375,11 +1375,13 @@ get_cell_info_ready (MMIfaceModem *self, GList *info_list; info_list = MM_IFACE_MODEM_GET_INTERFACE (self)->get_cell_info_finish (self, res, &error); - if (error) + if (error) { + mm_obj_dbg (self, "failed retrieving cell info: %s", error->message); g_dbus_method_invocation_take_error (ctx->invocation, error); - else { + } else { g_autoptr(GVariant) dict_array = NULL; + mm_obj_dbg (self, "cell info retrieved"); dict_array = get_cell_info_build_result (info_list); mm_gdbus_modem_complete_get_cell_info (ctx->skeleton, ctx->invocation, dict_array); } @@ -1415,6 +1417,7 @@ handle_get_cell_info_auth_ready (MMBaseModem *self, return; } + mm_obj_info (self, "processing user request to retrieve cell info..."); MM_IFACE_MODEM_GET_INTERFACE (self)->get_cell_info (ctx->self, (GAsyncReadyCallback)get_cell_info_ready, ctx); @@ -1427,7 +1430,7 @@ handle_get_cell_info (MmGdbusModem *skeleton, { HandleGetCellInfoContext *ctx; - ctx = g_new (HandleGetCellInfoContext, 1); + ctx = g_slice_new0 (HandleGetCellInfoContext); ctx->skeleton = g_object_ref (skeleton); ctx->invocation = g_object_ref (invocation); ctx->self = g_object_ref (self); |