From 54178a7959c018341da48b86164a0cb6f74be1e1 Mon Sep 17 00:00:00 2001 From: Aleksander Morgado Date: Mon, 10 Sep 2012 18:27:15 +0200 Subject: cli: include default SMS storage info in `--messaging-status' $> sudo mmcli -m 1 --messaging-status /org/freedesktop/ModemManager1/Modem/1 ---------------------------- Messaging | supported storages: 'sm, mt, me, sr' | default storage: 'me' --- cli/mmcli-modem-messaging.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'cli/mmcli-modem-messaging.c') diff --git a/cli/mmcli-modem-messaging.c b/cli/mmcli-modem-messaging.c index cc6da608..e470e7a3 100644 --- a/cli/mmcli-modem-messaging.c +++ b/cli/mmcli-modem-messaging.c @@ -167,9 +167,13 @@ print_messaging_status (void) g_print ("\n" "%s\n" " ----------------------------\n" - " Messaging | supported storages: '%s'\n", + " Messaging | supported storages: '%s'\n" + " | default storage: '%s'\n", mm_modem_messaging_get_path (ctx->modem_messaging), - VALIDATE_UNKNOWN (supported_str)); + VALIDATE_UNKNOWN (supported_str), + VALIDATE_UNKNOWN (mm_sms_storage_get_string ( + mm_modem_messaging_get_default_storage ( + ctx->modem_messaging)))); g_free (supported_str); } -- cgit v1.2.3-70-g09d2