sms-mbim: port to use object logging
This commit is contained in:
@@ -28,7 +28,7 @@
|
||||
#include "mm-iface-modem-messaging.h"
|
||||
#include "mm-sms-mbim.h"
|
||||
#include "mm-base-modem.h"
|
||||
#include "mm-log.h"
|
||||
#include "mm-log-object.h"
|
||||
#include "mm-sms-part-3gpp.h"
|
||||
|
||||
G_DEFINE_TYPE (MMSmsMbim, mm_sms_mbim, MM_TYPE_BASE_SMS)
|
||||
@@ -237,11 +237,14 @@ sms_delete_set_ready (MbimDevice *device,
|
||||
GAsyncResult *res,
|
||||
GTask *task)
|
||||
{
|
||||
MMSmsMbim *self;
|
||||
SmsDeletePartsContext *ctx;
|
||||
MbimMessage *response;
|
||||
GError *error = NULL;
|
||||
|
||||
self = g_task_get_source_object (task);
|
||||
ctx = g_task_get_task_data (task);
|
||||
|
||||
response = mbim_device_command_finish (device, res, &error);
|
||||
if (response &&
|
||||
mbim_message_response_get_result (response, MBIM_MESSAGE_TYPE_COMMAND_DONE, &error))
|
||||
@@ -252,9 +255,9 @@ sms_delete_set_ready (MbimDevice *device,
|
||||
|
||||
if (error) {
|
||||
ctx->n_failed++;
|
||||
mm_dbg ("Couldn't delete SMS part with index %u: '%s'",
|
||||
mm_sms_part_get_index ((MMSmsPart *)ctx->current->data),
|
||||
error->message);
|
||||
mm_obj_dbg (self, "couldn't delete SMS part with index %u: %s",
|
||||
mm_sms_part_get_index ((MMSmsPart *)ctx->current->data),
|
||||
error->message);
|
||||
g_error_free (error);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user