summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAleksander Morgado <aleksander@lanedo.com>2012-11-02 13:19:15 (GMT)
committerAleksander Morgado <aleksander@lanedo.com>2012-11-02 13:19:15 (GMT)
commitb43575fdf9c2f6b9f47dcb034343c0cb58e3df90 (patch)
tree08e897b62d54e3aeabe9082ece902bd365c9a0fe
parent9ec90d9a11f53c91274a1341217e7da5f8621674 (diff)
iface-modem-messaging: fix storage string when reporting errors
-rw-r--r--src/mm-iface-modem-messaging.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/mm-iface-modem-messaging.c b/src/mm-iface-modem-messaging.c
index f734968..0271d60 100644
--- a/src/mm-iface-modem-messaging.c
+++ b/src/mm-iface-modem-messaging.c
@@ -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);
}