iface-modem-messaging: fix storage string when reporting errors

This commit is contained in:
Aleksander Morgado
2012-11-02 14:19:15 +01:00
parent 9ec90d9a11
commit b43575fdf9

View File

@@ -752,8 +752,13 @@ load_initial_sms_parts_ready (MMIfaceModemMessaging *self,
MM_IFACE_MODEM_MESSAGING_GET_INTERFACE (self)->load_initial_sms_parts_finish (self, res, &error);
if (error) {
StorageContext *storage_ctx;
storage_ctx = get_storage_context (ctx->self);
mm_dbg ("Couldn't load SMS parts from storage '%s': '%s'",
mm_sms_storage_get_string (ctx->mem1_storage_index),
mm_sms_storage_get_string (g_array_index (storage_ctx->supported_mem1,
MMSmsStorage,
ctx->mem1_storage_index)),
error->message);
g_error_free (error);
}