summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAleksander Morgado <aleksander@lanedo.com>2012-11-02 14:19:15 +0100
committerAleksander Morgado <aleksander@lanedo.com>2012-11-02 14:19:15 +0100
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 f7349681..0271d60d 100644
--- a/src/mm-iface-modem-messaging.c
+++ b/src/mm-iface-modem-messaging.c
@@ -754,4 +754,9 @@ load_initial_sms_parts_ready (MMIfaceModemMessaging *self,
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);