diff options
author | Aleksander Morgado <aleksander@lanedo.com> | 2011-12-31 13:31:33 +0100 |
---|---|---|
committer | Aleksander Morgado <aleksander@lanedo.com> | 2012-03-15 14:14:42 +0100 |
commit | def30139d7feb32fdc8a6c5e18a7f95d1d4417dc (patch) | |
tree | 68463ed799f82c7397f250defd464c1f82fe0764 /cli/mmcli-modem.c | |
parent | 7043b2ef6ef0da5c4253a95e215f6ad86de7b320 (diff) |
cli: report as 'none' when no SIM path is given
Instead of giving '/'
Diffstat (limited to 'cli/mmcli-modem.c')
-rw-r--r-- | cli/mmcli-modem.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/cli/mmcli-modem.c b/cli/mmcli-modem.c index 57cf702f..451a8a2b 100644 --- a/cli/mmcli-modem.c +++ b/cli/mmcli-modem.c @@ -266,8 +266,8 @@ print_modem_info (void) * easiest to maintain */ #undef VALIDATE_UNKNOWN #define VALIDATE_UNKNOWN(str) (str ? str : "unknown") -#undef VALIDATE_NONE -#define VALIDATE_NONE(str) (str ? str : "none") +#undef VALIDATE_PATH +#define VALIDATE_PATH(str) ((str && !g_str_equal (str, "/")) ? str : "none") /* Strings with mixed properties */ unlock_required = mm_modem_get_unlock_required (ctx->modem); @@ -381,7 +381,7 @@ print_modem_info (void) /* SIM */ g_print (" -------------------------\n" " SIM | path: '%s'\n", - VALIDATE_NONE (mm_modem_get_sim_path (ctx->modem))); + VALIDATE_PATH (mm_modem_get_sim_path (ctx->modem))); g_print ("\n"); g_free (allowed_bands_string); |