diff options
author | Aleksander Morgado <aleksander@lanedo.com> | 2012-09-10 18:27:15 +0200 |
---|---|---|
committer | Aleksander Morgado <aleksander@lanedo.com> | 2012-09-14 07:05:23 +0200 |
commit | 54178a7959c018341da48b86164a0cb6f74be1e1 (patch) | |
tree | 921896fea9b06c175bcc7f4c18f95981adfa7c47 /cli/mmcli-modem-messaging.c | |
parent | fdb9db8d2858c7c53cad0666c539faefd990f6f7 (diff) |
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'
Diffstat (limited to 'cli/mmcli-modem-messaging.c')
-rw-r--r-- | cli/mmcli-modem-messaging.c | 8 |
1 files changed, 6 insertions, 2 deletions
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); } |