From b43575fdf9c2f6b9f47dcb034343c0cb58e3df90 Mon Sep 17 00:00:00 2001 From: Aleksander Morgado Date: Fri, 2 Nov 2012 14:19:15 +0100 Subject: iface-modem-messaging: fix storage string when reporting errors --- src/mm-iface-modem-messaging.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'src/mm-iface-modem-messaging.c') 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 @@ -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); } -- cgit v1.2.3-70-g09d2